簡體   English   中英

在配置文件上運行rnn.py時出錯

[英]Error when running rnn.py on a config file

當我嘗試執行以下命令時:

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.

您沒有正確遵循安裝文檔 您需要在~/.theanorc

[global]
device = cpu
floatX = float32

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM