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.
Ensure owens_t special function gracefully handles partially dynamic …
…shapes. ps.broadcast_shape is "all-or-nothing" in the presence of partially unknown shape. Owens T entails some while_loops, some of whose inputs were initially constants based on a ps.broadcast_shape. These were combined with other loop vars in the loop body, losing shape info along the way. Rewriting the broadcasts using tensor multiplication, while less "elegant", preserves the requisite shape info. PiperOrigin-RevId: 413683996
- Loading branch information
1 parent
b5f0348
commit c2299ff
Showing
2 changed files
with
28 additions
and
10 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