chainer-ptb-nsteplstm's People
chainer-ptb-nsteplstm's Issues
Invalid operation is performed in: Concat (Forward)
When executing ptb/gentext.py
based my script using the model trained by train_ptb_nstep.py
, then raise following error:
Traceback (most recent call last):
File "predict.py", line 100, in <module>
main()
File "predict.py", line 77, in main
prob = F.softmax(model.predictor(prev_word))
File "/work/rnnlm/train.py", line 40, in __call__
ex = self.embed(F.concat(xs, axis=0))
File "/work/venv/py3/lib/python3.6/site-packages/chainer/functions/array/concat.py", line 87, in concat
return Concat(axis=axis)(*xs)
File "/work/venv/py3/lib/python3.6/site-packages/chainer/function.py", line 189, in __call__
self._check_data_type_forward(in_data)
File "/work/venv/py3/lib/python3.6/site-packages/chainer/function.py", line 273, in _check_data_type_forward
self.check_type_forward(in_type)
File "/work/venv/py3/lib/python3.6/site-packages/chainer/functions/array/concat.py", line 23, in check_type_forward
type_check.Variable(self.axis, 'axis'))
File "/work/venv/py3/lib/python3.6/site-packages/chainer/utils/type_check.py", line 487, in expect
expr.expect()
File "/work/venv/py3/lib/python3.6/site-packages/chainer/utils/type_check.py", line 449, in expect
'{0} {1} {2}'.format(left, self.inv, right))
chainer.utils.type_check.InvalidType:
Invalid operation is performed in: Concat (Forward)
Expect: in_types[0].ndim > axis
Actual: 0 <= 0
why split section in def convert?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.