pytorch
88a160dc - [TensorExpr] LoopNest: Cleanup LoopNest constructors. (#52726)

Commit
3 years ago
[TensorExpr] LoopNest: Cleanup LoopNest constructors. (#52726) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52726 This change removes `input_bufs_` and `intermediate_bufs_` from `LoopNest` class as they can be deduced from the root stmt and the list of output bufs. As a result, the constuctor of the LoopNest also becomes simpler as we now need to pass just one list of bufs. Note: we might consider passing list of input bufs for verification purposes (only inputs buffers are allowed to not have a definition), but since we don't really have an IR verifier yet, there is no need in it now. Once we add IR verifier, we could reconsider it. Test Plan: Imported from OSS Reviewed By: navahgar Differential Revision: D26629596 Pulled By: ZolotukhinM fbshipit-source-id: 81f544e9602b6855b7968d540b9ae06bd7c7e6d8
Author
Mikhail Zolotukhin
Parents
Loading