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

请问依赖的版本都是什么 #13

Open
dpbycicle opened this issue Oct 30, 2017 · 1 comment
Open

请问依赖的版本都是什么 #13

dpbycicle opened this issue Oct 30, 2017 · 1 comment

Comments

@dpbycicle
Copy link

Hi, 我clone下来的代码跑挂了,没弄懂什么原因:

MultiTurnResponseSelection/src/CNN.py:233: UserWarning: DEPRECATION: the 'ds' parameter is not going to exist anymore as it is going to be replaced by the parameter 'ws'.
self.output =theano.tensor.signal.pool.pool_2d(input=conv_out_tanh, ds=self.poolsize, ignore_border=True,mode="max")
Traceback (most recent call last):
File "SMN_Last.py", line 422, in
,hidden_size=100,word_embedding_size=100)
File "SMN_Last.py", line 334, in train
train_model = theano.function([index], cost,updates=grad_updates, givens=dic,on_unused_input='ignore')
File "/usr/lib64/python2.7/site-packages/theano/compile/function.py", line 326, in function
output_keys=output_keys)
File "/usr/lib64/python2.7/site-packages/theano/compile/pfunc.py", line 449, in pfunc
no_default_updates=no_default_updates)
File "/usr/lib64/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=<TensorType(float32, matrix)>, shared_var.type=TensorType(float32, matrix), update_val=Elemwise{add,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.')

这个是theano的版本问题么?

@wenchaodudu
Copy link

Did you config your .theanorc file? I fix the problem by setting floatX=float32

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