摘要: tf.get_variable(): 不受 name_scope 的影响,在未指定共享变量时,重名报错 tf.Variable() : 会自动检测有无重名,重名自行处理 当需要共享变量时,使用tf.variable_scope() 阅读全文
posted @ 2017-11-12 15:16 hahahaf 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 使用 tf.train.Saver 保存:tf.train.Saver.save(sess, save_path, global_step=None, latest_filename=None, meta_graph_suffix='meta', write_meta_graph=True, wri 阅读全文
posted @ 2017-11-12 14:48 hahahaf 阅读(338) 评论(0) 推荐(0) 编辑