forked from pytorch/pytorch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TensorExpr] Remove
dtype_
and add buf_
fields to `CodeGen::Buffe…
…rArg`. `BufferArg` is used to describe parameters passed to the codegen: it indicates whether the parameter is a var or a buf and holds a pointer to the corresponding var/buf. Both var and buf contain dtype, and thus duplicating it in BufferArg is unnecessary - we can always get it from the var/buf. Hence we're removing dtype_ field from BufferArg in this PR. We're also adding a `buf_` field here: this is done so that BufferArg truly has all the info about the parameter. ghstack-source-id: e9e9ff211b1708ef2ef1dfe1c191964ba0e9c18d Pull Request resolved: pytorch#57382
- Loading branch information
Mikhail Zolotukhin
committed
Apr 30, 2021
1 parent
124bd45
commit cd46e63
Showing
2 changed files
with
22 additions
and
21 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