
TensorFlow
echo_1994
不想当算法工程师的程序员不是好的医生
展开
-
【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.mul 改成 tf.multiply 即可 其余的 tf.sub 和 tf.neg 也要相应修改为 tf.subtract转载 2017-12-27 12:10:56 · 712 阅读 · 0 评论 -
Tensorflow - ValueError: Parent directory of model.ckpt doesn't exist, can't save
超强,一用一个准 参考:Tensorflow - ValueError: Parent directory of trained_variables.ckpt doesn’t exist, can’t save转载 2018-10-30 22:18:52 · 1979 阅读 · 0 评论 -
tf.expand_dims()和 tf.reshape()的区别
TensorFlow中,想要维度增加一维,可以使用tf.expand_dims(input, dim, name=None)函数。当然,我们常用tf.reshape(input, shape=[])也可以达到相同效果,但是有些时候在构建图的过程中,placeholder没有被feed具体的值,这时就会包下面的错误: TypeError: Expected binary or unicod...转载 2018-11-22 15:30:09 · 1766 阅读 · 0 评论 -
升级tensorflow版本出现错误 OSError: [Errno 28] No space left on device
今天升级tensorflow版本的时候,出现错误 OSError: [Errno 28] No space left on device 我主观以为是没有容量了,用 df -h 查看,还有很多容量,查了很多方法,最终用这条命令解决 Create tmp folder on /home/myuser then execute in Terminal export TMPDIR=/h...原创 2018-12-10 11:24:26 · 9317 阅读 · 1 评论