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:
parent
b0d3127b59
commit
2d2bd4231b
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user