Merge pull request #10948 from dgboy2000/master

fix error string format
This commit is contained in:
Shanqing Cai 2017-06-22 09:23:23 -04:00 committed by GitHub
commit e525ed179e

View File

@ -1467,7 +1467,8 @@ def fully_connected(inputs,
ValueError: If x has rank less than 2 or if its last dimension is not set.
"""
if not isinstance(num_outputs, six.integer_types):
raise ValueError('num_outputs should be int or long, got %s.', num_outputs)
raise ValueError(
'num_outputs should be int or long, got %s.' % (num_outputs,))
layer_variable_getter = _build_variable_getter({'bias': 'biases',
'kernel': 'weights'})