Skip to main content
[![GitHub license](https://img.shields.io/github/license/0h-n0/torchex.svg)](https://github.com/0h-n0/torchex)
[![PYTHON version](https://img.shields.io/badge/python-3.5,3.6-blue.svg)](https://github.com/0h-n0/torchex)
[![PyPI version](https://img.shields.io/pypi/v/torchex.svg)](https://badge.fury.io/py/torchex)
[![CircleCI](https://circleci.com/gh/0h-n0/torchex.svg?style=svg&circle-token=99e93ba7bf6433d0cd33adbec2fbd042d141353d)](https://circleci.com/gh/0h-n0/torchex)
[![Build Status](https://travis-ci.org/0h-n0/torchex.svg?branch=master)](https://travis-ci.org/0h-n0/torchex)
[![codecov](https://codecov.io/gh/0h-n0/torchex/branch/master/graph/badge.svg)](https://codecov.io/gh/0h-n0/torchex)
[![Documentation Status](https://readthedocs.org/projects/torchex/badge/?version=latest)](https://torchex.readthedocs.io/en/latest/?badge=latest)
[![Maintainability](https://api.codeclimate.com/v1/badges/7cd6c99f10d22db13ee8/maintainability)](https://codeclimate.com/github/0h-n0/torchex/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/7cd6c99f10d22db13ee8/test_coverage)](https://codeclimate.com/github/0h-n0/torchex/test_coverage)
[![BCH compliance](https://bettercodehub.com/edge/badge/0h-n0/torchex?branch=master)](https://bettercodehub.com/)
[![Downloads](https://img.shields.io/pypi/dm/torchex.svg)](https://pypi.org/project/torchex/)

# (WIP) `torchexq library

`torchex` library provides advanced Neural Network Layers. You can easily use them like using original pytorch.

## Installation

```
$ pip install torchex
```

## Requirements

* Pytorch >= 0.4.1

## Documentation

* https://torchex.readthedocs.io/en/latest/index.html

## How to use

### Lazy Modules

```python
import torch
import torchex.nn as exnn

net = exnn.Linear(10)
# You don't need to give the size of input for this module.
# This network is equivalent to `nn.Linear(100, 10)`.

x = troch.randn(10, 100)

y = net(x)
```


## TODO

### Layers

- [x] support fundamental complex operations
- to_complex method
- to_real method
- complex_norm method
- [ ] add submodule for many examples.
- [ ] SeparableConv2D
- [ ] LocallyConnected1D
- [x] Highway
- [x] Inception
- [x] InceptionBN
- [x] Conv2dLocal
- [x] MLPConv2d
* [Network In Network](https://arxiv.org/abs/1312.4400v3)
- [ ] NaryTreeLSTM
- [ ] StatefulZoneoutLSTM
- [ ] StatefulPeepholeLSTM
- [ ] StatefulMGU
- [ ] BinaryHierarchicalSoftmax
- [ ] BlackOut
- [ ] CRF1d
- [ ] SimplifiedDropconnect
- [ ] Swish
- [ ] NegativeSampling
- [ ] ResidualCell
- [ ] Attention Cell
* [XiaoIce Band: A Melody and Arrangement Generation Framework for Pop Music](https://www.kdd.org/kdd2018/accepted-papers/view/xiaoice-banda-melody-and-arrangement-generation-framework-for-pop-music)
- [ ] MLP Cell
* same as above.
- [ ] DFT2d
* [Rotation Equivariance and Invariance in Convolutional Neural Networks](https://arxiv.org/pdf/1805.12301.pdf)
* https://github.com/bchidest/RiCNN/tree/master/ricnn
- [ ] My original DFT layer (made by Koji Ono)
- [ ] DFT1d
- [x] DFT2d
- [ ] DFT3d
- [ ] iDFT1d
- [ ] iDFT2d
- [ ] iDFT3d
- [ ] RFFT1d
- [ ] RFFT2d
- [ ] RFFT3d

- [ ] Conic Convolutional Layers
* same as above.

### Zoo

- [x] ImageTransferNet

### Optimizer

- [ ] chainer.optimizer_hooks.GradientLARS

### Atiributions

- [x] Integrated Gradients

## Examples


## Related Projects

* torchhp
* Hyper-Parameter Turning Library for Pytorch.
* torchrl
* Pytorch Reinforcement Learning Library.
* torchchem
* TorchChem aims to provide a high quality open-source toolchain that democratizes the use of deep-learning in drug discovery, materials science, quantum chemistry, and biology.
* torchml
* Auto model optimization library for pytorch.
* torcdata
* Pytorch Datasets.

## Codes References

* Chainer
* One of the most wonderfull DeepLearning framework.
* https://github.com/chainer/chainer
* NLP
* allenNLP
* https://github.com/allenai/allennlp
* fairseq
* https://github.com/pytorch/fairseq
* text
* https://github.com/pytorch/text
* translate
* https://github.com/pytorch/translate
* Audio
* neural_sp
* https://github.com/hirofumi0810/neural_sp/
* deepspeech.pytorch
* https://github.com/SeanNaren/deepspeech.pytorch
* Awesome Speech Recognition Speech Synthesis Papers
* https://github.com/zzw922cn/awesome-speech-recognition-speech-synthesis-papers
* speech
* https://github.com/awni/speech
* pytorch-asr
* https://github.com/jinserk/pytorch-asr

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchex-0.0.5.macosx-10.9-x86_64.tar.gz (64.4 kB view details)

Uploaded Source

File details

Details for the file torchex-0.0.5.macosx-10.9-x86_64.tar.gz.

File metadata

  • Download URL: torchex-0.0.5.macosx-10.9-x86_64.tar.gz
  • Upload date:
  • Size: 64.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for torchex-0.0.5.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 d8bf7849fedbd330c104da34d8d3e2fad284f24bc3fe8c05e043c649cfbda714
MD5 3ff8c4dec83571559b3f524a013a8f2b
BLAKE2b-256 7d2bbb9ec7c99e3284aa0e53652432d946c273801f3560a84edddca3317c8bfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page