Skip to content

Error in file #13

@deepcode-debug

Description

@deepcode-debug

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions