原文: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