Support defun-ing instance methods.
This change implements the __get__ method on _PolymorphicFunction and has
it forward the instance to __call__. This makes it possible to write code like
class Foo(object):
...
@tfe.defun
def two(self, tensor):
...
PiperOrigin-RevId: 201365344
Loading
Please sign in to comment