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 on hf_example.py and basic_rnn_example.py #4

Open
andyyuan78 opened this issue Jul 4, 2015 · 0 comments
Open

error on hf_example.py and basic_rnn_example.py #4

andyyuan78 opened this issue Jul 4, 2015 · 0 comments

Comments

@andyyuan78
Copy link

ubgpu@ubgpu:/github/theano-rnn$ sudo python basic_rnn_example.py
[sudo] password for ubgpu:
Sorry, try again.
[sudo] password for ubgpu:
Sorry, try again.
[sudo] password for ubgpu:
Using gpu device 0: GeForce GTX 970
Traceback (most recent call last):
File "basic_rnn_example.py", line 40, in
non_sequences=[W, W_in, W_out])
File "/usr/local/lib/python2.7/dist-packages/theano/scan_module/scan.py", line 1042, in scan
scan_outs = local_op(_scan_inputs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 507, in call
node = self.make_node(_inputs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/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.
ubgpu@ubgpu:
/github/theano-rnn$ sudo python basic_rnn_example.py

Using gpu device 0: GeForce GTX 970
Traceback (most recent call last):
File "basic_rnn_example.py", line 40, in
non_sequences=[W, W_in, W_out])
File "/usr/local/lib/python2.7/dist-packages/theano/scan_module/scan.py", line 1042, in scan
scan_outs = local_op(_scan_inputs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 507, in call
node = self.make_node(_inputs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/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.
ubgpu@ubgpu:/github/theano-rnn$
ubgpu@ubgpu:
/github/theano-rnn$
ubgpu@ubgpu:/github/theano-rnn$
ubgpu@ubgpu:
/github/theano-rnn$ ll
total 108
drwxrwxr-x 3 ubgpu ubgpu 4096 6月 7 00:40 ./
drwxrwxr-x 255 ubgpu ubgpu 12288 7月 3 20:23 ../
-rw-rw-r-- 1 ubgpu ubgpu 1685 6月 7 00:40 basic_rnn_example.py
drwxrwxr-x 8 ubgpu ubgpu 4096 6月 7 00:40 .git/
-rw-rw-r-- 1 ubgpu ubgpu 232 6月 7 00:40 .gitignore
-rw-rw-r-- 1 ubgpu ubgpu 7374 6月 7 00:40 hf_example.py
-rw-rw-r-- 1 ubgpu ubgpu 1499 6月 7 00:40 License.md
-rw-rw-r-- 1 ubgpu ubgpu 1963 6月 7 00:40 README.md
-rw-rw-r-- 1 ubgpu ubgpu 39709 6月 7 00:40 rnn_minibatch.py
-rw-rw-r-- 1 ubgpu ubgpu 23215 6月 7 00:40 rnn.py
ubgpu@ubgpu:/github/theano-rnn$ sudo python hf_example.py
Using gpu device 0: GeForce GTX 970
Traceback (most recent call last):
File "hf_example.py", line 12, in
from hf import SequenceDataset, hf_optimizer
ImportError: No module named hf
ubgpu@ubgpu:
/github/theano-rnn$

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