[TensorExpr] Postpone insertion of Alloc/Free statements in computeAt.#36526
[TensorExpr] Postpone insertion of Alloc/Free statements in computeAt.#36526ZolotukhinM wants to merge 5 commits intogh/ZolotukhinM/223/basefrom
Conversation
[ghstack-poisoned]
💊 Build failures summary and remediationsAs of commit c208ce0 (more details on the Dr. CI page):
🚧 1 upstream failure:These were probably caused by upstream breakages:
Extra GitHub checks
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 15 times. |
|
|
||
| // Mark the new temp buffer as requiring an alloc (it will be inserted as a | ||
| // part of prepareForCodegen. | ||
| temp_bufs_.push_back(temp_buf); |
There was a problem hiding this comment.
nit: can we have this is as a single data structure? std::vector<std::pair<..>>
| } | ||
|
|
||
| // Mark the new temp buffer as requiring an alloc (it will be inserted as a | ||
| // part of prepareForCodegen. |
There was a problem hiding this comment.
it might make sense to move the bounds inference to prepareforcodegen
There was a problem hiding this comment.
Yes, that's what we should be ultimately doing.
…n computeAt." Differential Revision: [D21004740](https://our.internmc.facebook.com/intern/diff/D21004740) [ghstack-poisoned]
…n computeAt." Differential Revision: [D21004740](https://our.internmc.facebook.com/intern/diff/D21004740) [ghstack-poisoned]
…n computeAt." Differential Revision: [D21004740](https://our.internmc.facebook.com/intern/diff/D21004740) [ghstack-poisoned]
…n computeAt." Differential Revision: [D21004740](https://our.internmc.facebook.com/intern/diff/D21004740) [ghstack-poisoned]
|
@ZolotukhinM merged this pull request in d5ba39c. |
pytorch#36526) Summary: Pull Request resolved: pytorch#36526 Test Plan: Imported from OSS Differential Revision: D21004740 Pulled By: ZolotukhinM fbshipit-source-id: 8ac8db0d4e31065e4fbd3e0cc27f15a15dcb141c
Stack from ghstack:
Differential Revision: D21004740