tf.get_variable 和tf.variable_scope
变量共享主要涉及到两个函数: tf.get_variable(<name>, <shape>, <initializer>) 和 tf.variable_scope(<scope_name>)。先来看第一个函数: tf.get_variable。tf.get_variable 和tf.Variable不同的一点是,前者拥有一个变量检查机制,会检测已经存在的变量是否设置为共享变量,如果已经存在的变量没
转载
2016-12-20 21:46:10 ·
13362 阅读 ·
0 评论