forked from tensorflow/probability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robustify AutoCompositeTensor; support deprecated things and obj.para…
…meters - callables decorated with TF's deprecation symbol get nested inside callables with *args and **kwargs, which broke our use of (std lib) `inspect`. Use `tf_inspect` instead, which correctly recurses into wrapped callables. - some Distributions have kwargs that aren't attrs, but do appear in self.parameters; add this to the list of places we look for values during _to_components. PiperOrigin-RevId: 350844814
- Loading branch information
1 parent
863271e
commit 7b80f1c
Showing
2 changed files
with
29 additions
and
4 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