-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false positive tracer leaks in flax library.
We'd like flax itself never to accidentally trigger the jax leak detector when enabled, but over the years a few longer-lived temporaries were introduced to the flax codebase that do trigger it. We remedy those cases: - in flax.core remove a redundant use of nonlocal scopes in pack implementation. - for nn.jit have the hashing helper datastructure maintain a weakref to module. - explicitly exempt a context capture used in module summary tabulation routine. PiperOrigin-RevId: 679881642
- Loading branch information
Showing
4 changed files
with
49 additions
and
37 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
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