forked from pytorch/torchrec
-
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.
change ir_custom_op output to list of tensors (pytorch#2246)
Summary: Pull Request resolved: pytorch#2246 # context * the original implementation of "ir_custom_op" strategy has logic flaw: * input the sum of dim, and let the op return a contiguous tensor, then split it to multiple tensors * from the dynamic shape (ds) prespective, there is a sum(ds_i) before the op, then another split to (ds_i). the range calculation for these ds are unnecessary and create a lot of complexities * it's better to keep these ds transparent into and out from the op Differential Revision: D53558783
- Loading branch information
1 parent
c89e9df
commit f7b5994
Showing
2 changed files
with
26 additions
and
24 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