GitXplorerGitXplorer
j

chainer2pytorch

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
715cf92249d2ef6d10e991ca6c7c172735c59fb5

add LSTMCell

jjekbradbury committed 8 years ago
Unverified
a10199ef495d12632cb794dd0ab1811e9460c601

add volatile

vvzhong committed 8 years ago
Unverified
8a88ca0e6fdff6c49faf855b48f62546f491e579

add softmax, maxout

vvzhong committed 8 years ago
Unverified
ac6bd1ccac2b818ca172e6aa4c413fb65a875ca6

fix shape ordering

vvzhong committed 8 years ago
Unverified
6ad10b94d8fdc006c92608276af3e5f14ec33013

add embedding

vvzhong committed 8 years ago
Unverified
bcc1600d3d5daaa6961aed9d3d656bb1c69539cd

initial commit

vvzhong committed 8 years ago

README

The README file for this repository.

chainer2pytorch

chainer2pytorch implements conversions from Chainer modules to PyTorch modules, setting parameters of each modules such that one can port over models on a module basis.

Installation:

pip install git+git://github.com/vzhong/chainer2pytorch.git

Usage:

from tc import nn
from chainer import links as L

c = L.Linear(10, 50)
t = nn.Linear.from_chainer(c)

c = L.NStepLSTM(1, 10, 20, 0)
t = nn.from_chainer(c)

Note that when do you a forward call, PyTorch's LSTM only gives the output of the last layer, whereas chainer gives the output of all layers.

Test:

nosetests tests

Pull requests are welcome!