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

Nameerror when using intensity as loss function #2

Open
JackingChen opened this issue Feb 5, 2018 · 0 comments
Open

Nameerror when using intensity as loss function #2

JackingChen opened this issue Feb 5, 2018 · 0 comments

Comments

@JackingChen
Copy link

JackingChen commented Feb 5, 2018

when executing RNNPP encountered Nameerror : Python: NameError: free variable 'wt' referenced before assignment in enclosing scope on line 108 :
108. wt = tf.cond(tf.less(tf.reshape(tf.abs(w_t),[]),epilson),lambda:tf.sign(wt)*epilson, lambda:wt) #put in wrong position before

I think the variable names are messed up between w_t and wt but modifing it to
108. wt = tf.cond(tf.less(tf.reshape(tf.abs(w_t),[]),epilson),lambda:tf.sign(w_t)*epilson, lambda:w_t) #put in wrong position before
shows

InvalidArgumentError: Input to reshape is a tensor with 4064256 values, but the requested shape has 2016
....

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

1 participant