yusuketomoto / chainer-char-rnn

karpathy's char-rnn (https://github.com/karpathy/char-rnn) implementation by Chainer
MIT License
167 stars 62 forks source link

Fix for float32 != float64 numpy array incompatibility (training with cpu) #7

Closed tjrileywisc closed 9 years ago

tjrileywisc commented 9 years ago

By default, numpy arrays were float64, which are incompatible with chainer. Simple fix to force dtype to float32.