在配置文件上运行rnn.py时出错

时间:2018-06-29 10:18:20

标签: python returnn

当我尝试执行以下命令时:

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.

1 个答案:

答案 0 :(得分:1)

您没有正确遵循installation documentation。您需要在您的~/.theanorc中放置它:

[global]
device = cpu
floatX = float32