Giter Club home page Giter Club logo

chainer-ptb-nsteplstm's People

Contributors

kei-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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

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.