原文:TensorFlow——module 'tensorflow' has no attribute 'xxx'

tf.sub 更改為tf.subtract tf.mul 更改為tf.multiply tf.types.float 更改為tf.float tf.pact 更改為tf.stact tf.select 更改為tf.where tf.per image whitening 改為 tf.image.per image standardization 更多參考:Remove tf.train.Summ ...

2017-09-27 14:56 0 9228 推薦指數:

查看詳情

'tensorflow' has no attribute 'sub'

在學習tensorflow的時候,照到官方的例子做,發現了一個 一猜,我就估計是函數換名字了,果然,換成了subtract 這樣就坑過了 ...

Thu Mar 23 00:01:00 CST 2017 0 10886
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM