【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
·
原因:TensorFlow 发布的新版本的 API 修改了
tf.mul, tf.sub and tf.neg are deprecated in favor of tf.multiply, tf.subtract and tf.negative.
其余的 tf.sub 和 tf.neg 也要相应修改为 tf.subtract 和 tf.negative。
更多推荐
所有评论(0)