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

Value error in "fn" function #5

Open
karen-turing opened this issue Dec 9, 2015 · 0 comments
Open

Value error in "fn" function #5

karen-turing opened this issue Dec 9, 2015 · 0 comments

Comments

@karen-turing
Copy link

when i execute the program i get the following error i tried converting "fn" to float32 but the results are the same this is the error :
Traceback (most recent call last):
File "basic_rnn_example.py", line 40, in
non_sequences=[W, W_in, W_out]))
File "C:\Anaconda2\lib\site-packages\theano-0.7.0-py2.7.egg\theano\scan_module\scan.py", line 1042, in scan
scan_outs = local_op(_scan_inputs)
File "C:\Anaconda2\lib\site-packages\theano-0.7.0-py2.7.egg\theano\gof\op.py", line 507, in call
node = self.make_node(_inputs, **kwargs)
File "C:\Anaconda2\lib\site-packages\theano-0.7.0-py2.7.egg\theano\scan_module\scan_op.py", line 374, 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 1) has dtype float32, 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.

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