-
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.
Avoid deprecated casting of size-1 np.ndarrays.
This used to be allowed but is now deprecated. Some logic that lies downstream of many of our distributions' log_prob methods would invoke this behavior (in a try/except, so it would not fail even post-deprecation, but we get an annoyting warning all the time). This change avoids that deprecated behavior. PiperOrigin-RevId: 574008432
- Loading branch information
1 parent
e6907a1
commit c1728d3
Showing
2 changed files
with
11 additions
and
5 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