-
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.
Fix the example for tfd.Autoregressive to actually be autoregressive.
This is done by zeroing out the diagonal. The autoregressive property (with a left-to-right order) dictates that when sampling element i, we must look only at elements 0 ≤ k < i, which implies that the diagonal must be zero. C.f. the 'exclusive' masking for the initial layers in tfb.AutoregressiveNetwork. Also, add a comment about the superflous iteration when sampling. PiperOrigin-RevId: 615131666
- Loading branch information
1 parent
7baa486
commit 11031d5
Showing
3 changed files
with
18 additions
and
15 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