-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
independent_joint_distribution_from_structure
to support (mor…
…e) nested objects. If there were no items at a level of nesting which were distributions, `get_traverse_shallow` would terminate there, which would end up calling `independent_joint_distribution_from_structure` on the same structure, leading to a recursion error. This change guarantees that that in that case, the top layer at least will get mapped up to. PiperOrigin-RevId: 584336978
- Loading branch information
1 parent
300bfe5
commit b7724fd
Showing
2 changed files
with
10 additions
and
0 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