Skip to content

Commit

Permalink
[maskedtensor] fix docs formatting (#87387) (#87406)
Browse files Browse the repository at this point in the history
Pull Request resolved: #87387
Approved by: https://github.com/cpuhrsch
  • Loading branch information
george-qi committed Oct 21, 2022
1 parent 55c76ba commit 59686b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/source/masked.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Motivation
The PyTorch API of masked tensors is in the prototype stage and may or may not change in the future.

MaskedTensor serves as an extension to :class:`torch.Tensor` that provides the user with the ability to:
- use any masked semantics (e.g. variable length tensors, nan* operators, etc.)
- differentiation between 0 and NaN gradients
- various sparse applications (see tutorial below)

* use any masked semantics (e.g. variable length tensors, nan* operators, etc.)
* differentiate between 0 and NaN gradients
* various sparse applications (see tutorial below)

"Specified" and "unspecified" have a long history in PyTorch without formal semantics and certainly without
consistency; indeed, MaskedTensor was born out of a build up of issues that the vanilla :class:`torch.Tensor`
Expand Down

0 comments on commit 59686b4

Please sign in to comment.