Ошибка при запуске rnn.py в файле конфигурации - PullRequest
0 голосов
/ 29 июня 2018

Когда я пытаюсь выполнить следующую команду:

python3.6 rnn.py demos/demo-act-lstm.12ax.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 голосов
/ 29 июня 2018

Вы не правильно выполнили документацию по установке . Вы должны иметь это в своем ~/.theanorc:

[global]
device = cpu
floatX = float32
...