Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[py_function] Don't attach py_function to the global eager graph.
Eager mode can incorrectly have a global graph. Disabling global graph on eager mode breaks too many assumptions so first introduce a flag indicating it. Also, avoid attaching py_function to eager mode global graph, which is a leak. Though this CL doesn't fix the leak yet as there are two more references that leads to the leak, `tape_cache` and `ag_dnc_wrapper__` . #35084 PiperOrigin-RevId: 288415011 Change-Id: Ica53e29521320af22c10609857d0a0219a9596ce
- Loading branch information
1 parent
5b74ee4
commit 3b74a63
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters