原文:TypeError: Can not convert a float32 into a Tensor or Operation.

錯誤 TypeError: Can not convert a float into a Tensor or Operation. 類型錯誤:不能將一個浮動 轉換為一個張量或操作。 TypeError: Fetch argument . has invalid type lt class numpy.float gt , must be a string or Tensor. Can not c ...

2017-08-09 21:03 0 2334 推薦指數:

查看詳情

tensorflow TypeError: Can not convert a float32 into a Tensor or Operation

遇到這種情況可能是你的程序中有和你定義的tensor 變量重名的其他變量名字,jishi在for循環中使用了這個名字的作為臨時變量也不行.tenor 變量很嬌氣.坑了我一晚上的時間. 比如:x = tf.placeholder(tf.float32,[None,512]) 那么在程序中就 ...

Thu May 09 04:52:00 CST 2019 0 556
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM