forked from pytorch/FBGEMM
-
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.
handle truncation vs. padding case in jagged tensors (pytorch#1013)
Summary: Pull Request resolved: pytorch#1013 When max_L is smaller than offset[i + 1] - offset[i], jagged -> dense will do truncation vs. padding. When we do jagged + dense -> jagged, the truncated portion where we don't have corresponding element in the dense input tensor, we just output the jagged input as if the value from dense input tensor is zero. We can so similar for multiplication, outputting zero for truncated portion. Reviewed By: jasonjk-park Differential Revision: D35171324 fbshipit-source-id: 38381d029be39b17530c9438d9cb9c94ec5d1bcf
- Loading branch information
1 parent
073ea44
commit a0ff6de
Showing
3 changed files
with
114 additions
and
75 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
Oops, something went wrong.