Merge pull request #14015 from rohan-varma/master
Set reuse=False instead of reuse=None, and add suggestion for tf.AUTO_REUSE
This commit is contained in:
commit
bb08368092
@ -581,7 +581,7 @@ class _VariableStore(object):
|
|||||||
if reuse is True:
|
if reuse is True:
|
||||||
raise ValueError("PartitionedVariable %s does not exist, or was not "
|
raise ValueError("PartitionedVariable %s does not exist, or was not "
|
||||||
"created with tf.get_variable(). Did you mean to set "
|
"created with tf.get_variable(). Did you mean to set "
|
||||||
"reuse=None in VarScope?" % name)
|
"reuse=False or reuse=tf.AUTO_REUSE in VarScope?" % name)
|
||||||
|
|
||||||
slice_dim, slice_shape = _compute_slice_dim_and_shape(
|
slice_dim, slice_shape = _compute_slice_dim_and_shape(
|
||||||
shape.as_list(), partitions)
|
shape.as_list(), partitions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user