- 博客(3)
- 资源 (6)
- 收藏
- 关注
原创 tensorflow保存变量出现错误(提示不能save)
错误名称:Tensorflow - ValueError: Parent directory of trained_variables.ckpt doesn’t exist, can’t saveThis is my line of code :saver.save(sess, "trained_variables.ckpt")出现上述错误,解决方案如下: 1)该路径应为:"./trained_v
2017-04-28 22:55:44 14592 7
原创 tensorflow(2) 命令行参数
全局环境下编写代码import tensorflow as tfflags = tf.flags #flags是一个文件:flags.py,用于处理命令行参数的解析工作logging = tf.logging#调用flags内部的DEFINE_string函数来制定解析规则flags.DEFINE_string("para_name_1","default_val", "description
2017-04-06 10:49:26 985
原创 tensorflow(1) 共享变量
example1:with tf.variable_scope("try"): #先创建两个变量w1, w2 w2 = tf.get_variable("w1",shape=[2,3,4], dtype=tf.float32) w3 = tf.get_variable("w2", shape=[2, 3, 4], dtype=tf.float32) #使用reuse_
2017-04-05 22:56:09 807
Orca工具包
2018-09-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人