aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Allen Lavoie <allenl@google.com>2018-09-17 14:24:17 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-17 14:28:07 -0700
commit28dd4d9fcbf8cac1008b2ccd2b4be3fa3c25afd1 (patch)
tree68e901eec6d952589b5a69f3be37d7f04dac8373 /third_party
parent4516558acc9763999b19d1af75ab1fcd6562e4f0 (diff)
Keep only weak references to variables in graph functions
This enables cleanup of the variables referenced in defunned methods of objects when the object is garbage collected. Since one PolymorphicFunction is created per @defun, decorated methods before this change held on to all of the variables referenced in that method for any instance of the class (i.e. variables which should have been object-scoped were scoped to the lifetime of the class definition). Raises an exception if variables used in the function have been deleted when it is called, which means no local variables. PiperOrigin-RevId: 213337256
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions