gwtaylor / theano-rnn Goto Github PK
View Code? Open in Web Editor NEWDemonstration of recurrent neural network implemented with Theano
License: BSD 3-Clause "New" or "Revised" License
Demonstration of recurrent neural network implemented with Theano
License: BSD 3-Clause "New" or "Revised" License
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.
Hi, I found the get_params method in getstatus is written as get_params, where a needless "" is written. The getstatus is in MetaRNN class. PLZ consider revising.
Hi, I found a exception below, when n_hidden=1 in rnn_minibatch.py . pls kindly let me know if you know how to solve it. thanks!
TypeError: Cannot convert Type TensorType(float64, 3D) (of Variable Subtensor{::int64}.0) into Type TensorType(float64, (False, False, True)). You can try to manually convert Subtensor{::int64}.0 into a TensorType(float64, (False, False, True)).
ubgpu@ubgpu:/github/theano-rnn$ sudo python basic_rnn_example.py/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:
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$/github/theano-rnn$
ubgpu@ubgpu:
ubgpu@ubgpu:/github/theano-rnn$/github/theano-rnn$ ll
ubgpu@ubgpu:
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/github/theano-rnn$
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.