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:
Benoit Steiner 2017-10-27 09:41:58 -07:00 committed by GitHub
commit bb08368092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,7 +581,7 @@ class _VariableStore(object):
if reuse is True:
raise ValueError("PartitionedVariable %s does not exist, or was not "
"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(
shape.as_list(), partitions)