Fixing bug that was trying to call append on a tuple. Fixed by converting to a list.

PiperOrigin-RevId: 261336294
This commit is contained in:
A. Unique TensorFlower 2019-08-02 09:39:18 -07:00 committed by TensorFlower Gardener
parent b0d3127b59
commit 2d2bd4231b

View File

@ -514,7 +514,7 @@ class LayerCallCollection(object):
# Add training arg to wrapper function.
arg_spec = tf_inspect.getfullargspec(call_fn)
args = arg_spec.args + ['training']
defaults = arg_spec.defaults or []
defaults = list(arg_spec.defaults or [])
defaults.append(False)
new_arg_spec = tf_inspect.FullArgSpec(
args=args,