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

Error in file #13

Open
DeepInEvil opened this issue Mar 20, 2018 · 1 comment
Open

Error in file #13

DeepInEvil opened this issue Mar 20, 2018 · 1 comment

Comments

@DeepInEvil
Copy link

We are getting this error while running the code, seems like some problem with the update. Please check

mask

% "\n\t".join(suggestions))
total_params: 44298600
Traceback (most recent call last):
File "main.py", line 669, in
main()
File "main.py", line 661, in main
model = Model(**args.dict)
File "main.py", line 375, in init
self.update_params()
File "main.py", line 408, in update_params
self.train_model = theano.function([], self.cost, updates=updates, givens=givens, on_unused_input='warn')
File "/home/DebanjanChaudhuri/anaconda3/envs/chatbot_exp/lib/python2.7/site-packages/theano/compile/function.py", line 317, in function
output_keys=output_keys)
File "/home/DebanjanChaudhuri/anaconda3/envs/chatbot_exp/lib/python2.7/site-packages/theano/compile/pfunc.py", line 449, in pfunc
no_default_updates=no_default_updates)
File "/home/DebanjanChaudhuri/anaconda3/envs/chatbot_exp/lib/python2.7/site-packages/theano/compile/pfunc.py", line 208, in rebuild_collect_shared
raise TypeError(err_msg, err_sug)
TypeError: ('An update must have the same type as the original shared variable (shared_var=cell_init, shared_var.type=TensorType(float64, row), update_val=Elemwise{sub,no_inplace}.0, update_val.type=TensorType(float64, matrix)).', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')

Regards,
Debanjan

@JamesDestiny
Copy link

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

2 participants