Commit 86c8647f authored by Sergei Lebedev's avatar Sergei Lebedev Committed by TensorFlower Gardener
Browse files

Proxy decorator_target.__get__ in TFDecorator

Prior to this change TFDecorator.__get__ mimicked the behaviour of functions
via partial(self.__call__, instance). This is no needed as calling
__get__ on a function would have a ~similar effect; and in fact incorrect
if target implements a custom __get__ method.

PiperOrigin-RevId: 234957239
parent 77587194
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment