You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code, the error information is as followings:
Learnableness: [True, True, False]
Using 0.001 for off_slope.
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1664, in
main()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 491, in
main(NUM_EPOCHS)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 273, in main
outputs_info=T.constant(0))
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan.py", line 1071, in scan
scan_outs = local_op(scan_inputs)
File "/usr/local/lib/python3.6/site-packages/theano/gof/op.py", line 615, in call
node = self.make_node(inputs, kwargs)
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 572, in make_node
inner_sitsot_out.type.dtype))
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (outputs_info in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 3) has dtype int8, while the result of the inner function (fn) has dtype float64. This can happen if the inner function of scan results in an upcast or downcast.
The text was updated successfully, but these errors were encountered:
It seems that you are using python3.6. And the error seems about the upcast or downcast of different dtypes (int8 and float64).
Can you try python2.7 please? Since we tested our code with python2.7.
My environment is set to the same as the author.
However, I still met this problem. Unable to fix it.
Could you release the steps from initial environment to running the code?
Thanks!
When I run the code, the error information is as followings:
Learnableness: [True, True, False]
Using 0.001 for off_slope.
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1664, in
main()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 491, in
main(NUM_EPOCHS)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 273, in main
outputs_info=T.constant(0))
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan.py", line 1071, in scan
scan_outs = local_op(scan_inputs)
File "/usr/local/lib/python3.6/site-packages/theano/gof/op.py", line 615, in call
node = self.make_node(inputs, kwargs)
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 572, in make_node
inner_sitsot_out.type.dtype))
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (
outputs_info
in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 3) has dtype int8, while the result of the inner function (fn
) has dtype float64. This can happen if the inner function of scan results in an upcast or downcast.The text was updated successfully, but these errors were encountered: