Giter VIP home page Giter VIP logo

tensor_rnn's Introduction

Tensor RNN

An implementation of various tensor-based decomposition for NN & RNN parameters

Quick Start

  1. Install python >= 3.0
  2. Install pytorch >= 3.0
  3. pip install -e . or python setup.py install

Run example scripts

  1. Go to example folder

    cd example/polymusic

  2. Go to data folder, download the pickled dataset and return.

    cd data && ./download_data.sh && cd ..

  3. Run any example script

    python run_ttgru.py

For the usage, see the code inside example/polymusic/poly_allrnn.py

Modules

Linear Layer

  • TuckerLinear
  • CPLinear
  • TTLinear

Bilinear Layer

  • CPBilinear
  • TuckerBilinear (TODO)

RNN Layer

  • StatefulCPLSTMCell
  • StatefulCPGRUCell
  • StatefulTuckerLSTMCell
  • StatefulTuckerGRUCell
  • StatefulTTLSTMCell
  • StatefulTTGRUCell

Reference

If you find this package is useful, please kindly cite:

@article{tjandra2018tensor,
  title={Tensor Decomposition for Compressing Recurrent Neural Network},
  author={Tjandra, Andros and Sakti, Sakriani and Nakamura, Satoshi},
  journal={arXiv preprint arXiv:1802.10410},
  year={2018}
}

@inproceedings{tjandra2017compressing,
  title={Compressing recurrent neural network with tensor train},
  author={Tjandra, Andros and Sakti, Sakriani and Nakamura, Satoshi},
  booktitle={Neural Networks (IJCNN), 2017 International Joint Conference on},
  pages={4451--4458},
  year={2017},
  organization={IEEE}
}

tensor_rnn's People

Contributors

arkmagus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.