原因:TensorFlow 发布的新版本的 API 修改了

tf.mul, tf.sub and tf.neg are deprecated in favor of tf.multiply, tf.subtract and tf.negative.


解决方法:使用时将 tf.mul 改成 tf.multiply 即可

其余的 tf.sub 和 tf.neg 也要相应修改为 tf.subtract 和 tf.negative。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐