在配置文件上 运行 rnn.py 时出错
Error when running rnn.py on a config file
当我尝试执行以下命令时:
python3.6 rnn.py demos/demo-act-lstm.12ax.config
(this config).
我收到以下错误:
Device cpu0 proc exception:
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 2) 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.
Unhandled exception <class 'ValueError'> in thread <_MainThread(MainThread, started 140379522152192)>, proc 12162.
您没有正确遵循installation documentation。你需要在你的 ~/.theanorc
:
中加入这个
[global]
device = cpu
floatX = float32
当我尝试执行以下命令时:
python3.6 rnn.py demos/demo-act-lstm.12ax.config
(this config).
我收到以下错误:
Device cpu0 proc exception:
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 2) 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.
Unhandled exception <class 'ValueError'> in thread <_MainThread(MainThread, started 140379522152192)>, proc 12162.
您没有正确遵循installation documentation。你需要在你的 ~/.theanorc
:
[global]
device = cpu
floatX = float32