Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_dynet.Expression.__mul__ NotImplementedError #1386

Closed
dreamilam opened this issue Jun 1, 2018 · 6 comments
Closed

_dynet.Expression.__mul__ NotImplementedError #1386

dreamilam opened this issue Jun 1, 2018 · 6 comments

Comments

@dreamilam
Copy link

dreamilam commented Jun 1, 2018

I was running the dynet python tutorial.

import dynet as dy
# define the parameters
m = dy.ParameterCollection()
W = m.add_parameters((8,2))
V = m.add_parameters((1,8))
b = m.add_parameters((8))

# renew the computation graph
dy.renew_cg()

# create the network
x = dy.vecInput(2) # an input vector of size 2.
output = dy.logistic(V*(dy.tanh((W*x)+b)))

I am getting this error.

[dynet] random seed: 3380132027
[dynet] allocating memory: 512MB
[dynet] memory allocation done.
Traceback (most recent call last):
  File "xor.py", line 13, in <module>
    output = dy.logistic(V*(dy.tanh((W*x)+b)))
  File "_dynet.pyx", line 1907, in _dynet.Expression.__mul__
NotImplementedError

Don't know where the problem is. Any input would be appreciated.

@pmichel31415
Copy link
Collaborator

Are you using the latest version from github?

@chunchiehy
Copy link

I’ve tried your snippet with the latest version. It works fine.

@neubig
Copy link
Contributor

neubig commented Jun 11, 2018

Closing, but re-open if this is not a version issue.

@neubig neubig closed this as completed Jun 11, 2018
@xcgfth
Copy link

xcgfth commented Jul 3, 2018

@xbainbain , which version you use?

@xcgfth
Copy link

xcgfth commented Jul 3, 2018

@dreamilam I also encountererd this problem, Did you have solve it?

@xcgfth
Copy link

xcgfth commented Jul 3, 2018

Okay, I have sovled it.
use installation from github insetad of pip itself, like this:
pip install git+https://github.com/clab/dynet#egg=dynet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants