-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
Deprecate TSNodeLoweringInterface
#78273
Deprecate TSNodeLoweringInterface
#78273
Conversation
🔗 Helpful links
✅ No Failures (6 Pending)As of commit 2190d9a (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@@ -88,6 +88,8 @@ class TORCH_API LoweringContext { | |||
const Shape& shape, | |||
const std::string& name) = 0; | |||
|
|||
virtual void Lower(const Node*) = 0; |
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.
this will require a xla side change.
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.
Does this API really needs to be in lowering_context.h
? It is not being used outside of lowering_context
constructor, maybe we should just let backend to define this function instead of putting it in the base class?
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.
Thats a good point. I guess it doesn't need to be in the top level class.
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.
although, it seems to be passing all the XLA tests. Unless you are referring to a change in a PR that is currently in progress
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 just merge pytorch/xla@185dd3c, which I think will be broken by this change. It is not a hard fix but I felt like maybe we don't need this class in the top level.
83d120b
to
dc68dcc
Compare
dc68dcc
to
2190d9a
Compare
@wconstab @desertfire All tests green! Can I get a review for this please? |
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! thanks @antoniojkim
@wconstab @desertfire Can we get the merge process started? |
you should be able to merge it yourself now, we have adopted a 'github first' merge process. you just write a comment saying "@pytorchbot merge this" and it gets done |
Oh cool. Thanks! |
@pytorchbot merge this |
Hey @antoniojkim. |
Summary: Fixes #78206 Deprecate `TSNodeLoweringInterface` and refactor lower functions into IR nodes. GitHub CC: wconstab desertfire Pull Request resolved: #78273 Approved by: https://github.com/wconstab Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/fe67dff82abf883dfb3623757dda6dab4dd848b7 Reviewed By: seemethere Differential Revision: D36815082 Pulled By: seemethere fbshipit-source-id: a9531f9d4f379e717b5e9298ada7b1020afb7da2
Fixes #78206
Deprecate
TSNodeLoweringInterface
and refactor lower functions into IR nodes.CC: @wconstab @desertfire