Merge pull request #23850 from howl-anderson:master

PiperOrigin-RevId: 248757421
This commit is contained in:
TensorFlower Gardener 2019-05-17 11:50:45 -07:00
commit 406f7ff0dc

View File

@ -56,7 +56,7 @@ def fn_args(fn):
fn = fn.__call__
args = tf_inspect.getfullargspec(fn).args
if _is_bounded_method(fn):
args.remove('self')
args.pop(0) # remove `self` or `cls`
return tuple(args)