-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[TensorExpr] Move 'initializer' field from 'Tensor' to 'Buf'. #50993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is the first step to make 'Tensor` a thin wrapper over 'Buf' and 'Stmt', which will be finished in subsequent PRs. This change also allows to remove 'buf_initializers_' from 'LoopNest', making it "less stateful". [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 41c2d18 (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
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 to the (internal) Dr. CI Users group. |
Codecov Report
@@ Coverage Diff @@
## gh/ZolotukhinM/395/base #50993 +/- ##
===========================================================
- Coverage 80.88% 80.88% -0.01%
===========================================================
Files 1929 1929
Lines 210526 210522 -4
===========================================================
- Hits 170292 170286 -6
- Misses 40234 40236 +2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm kind of ambivalent here because it feels like initialization is part of "compute" rather than of the data. But it also doesn't feel like it belongs on tensor either, so... surewhynot.gif
…f'." This is the first step to make 'Tensor` a thin wrapper over 'Buf' and 'Stmt', which will be finished in subsequent PRs. This change also allows to remove 'buf_initializers_' from 'LoopNest', making it "less stateful". Differential Revision: [D26038224](https://our.internmc.facebook.com/intern/diff/D26038224) [ghstack-poisoned]
…f'." This is the first step to make 'Tensor` a thin wrapper over 'Buf' and 'Stmt', which will be finished in subsequent PRs. This change also allows to remove 'buf_initializers_' from 'LoopNest', making it "less stateful". Differential Revision: [D26038224](https://our.internmc.facebook.com/intern/diff/D26038224) [ghstack-poisoned]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ZolotukhinM merged this pull request in 42aeb68. |
Stack from ghstack:
Tensor
class. #50995 [TensorExpr] RedesignTensor
class.This is the first step to make 'Tensor` a thin wrapper over 'Buf' and
'Stmt', which will be finished in subsequent PRs. This change also
allows to remove 'buf_initializers_' from 'LoopNest', making it "less
stateful".
Differential Revision: D26038224