-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[jit] move casting ops from prim to aten #21002
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
driazati
left a comment
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.
What's the backwards compatibility strategy for stuff like this? Models saved in 1.1 wouldn't work here, should we keep the old ones around in legacy_ops.cpp or something?
@driazati fortunately, all of our casting ops are serializing as python syntax like |
[jit] move casting ops from prim to aten gh-metadata: pytorch pytorch 21002 gh/wanchaol/11/head
[jit] move casting ops from prim to aten gh-metadata: pytorch pytorch 21002 gh/wanchaol/11/head
|
Can you explain why we are making this change? |
@suo sorry for not adding the summary, I will update. The reason of making the change is, currently we are messed up with |
zdevito
left a comment
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.
Yep, our goal should be that prim:: is only used for non-schematizable ops
|
This looks like it crossed over a merge resulting in master failure: |
|
@ezyang reverting in progress. |
Summary: Pull Request resolved: pytorch/pytorch#21002 ghimport-source-id: 4c88a54a3ecb76c5ca3c2c328b749350860a166d Differential Revision: D15523444 Pulled By: wanchaol fbshipit-source-id: 642342bf1ccea83c88897bc023979a32ee01addf
Summary: This is a redo PR of #21002 Currently we are messed up with prim and aten namespace when we register prim and builtin ops, lots of the ops that have schema should go into the aten namespace rather than prim, prim namespace should only be reserved for the ops that does not have a schema. Test Plan: Reviewers: Subscribers: Tasks: Tags:
[jit][redo] move casting ops from prim to aten Summary: This is a redo PR of #21002 Currently we are messed up with prim and aten namespace when we register prim and builtin ops, lots of the ops that have schema should go into the aten namespace rather than prim, prim namespace should only be reserved for the ops that does not have a schema. Test Plan: Reviewers: Subscribers: Tasks: Tags: gh-metadata: pytorch pytorch 22275 gh/wanchaol/27/head
…m to aten" [jit][redo] move casting ops from prim to aten Summary: This is a redo PR of #21002 Currently we are messed up with prim and aten namespace when we register prim and builtin ops, lots of the ops that have schema should go into the aten namespace rather than prim, prim namespace should only be reserved for the ops that does not have a schema. Test Plan: Reviewers: Subscribers: Tasks: Tags: gh-metadata: pytorch pytorch 22275 gh/wanchaol/27/head
Stack from ghstack:
Summary:
Currently we are messed up with
primandatennamespace when we register prim and builtin ops, lots of the ops that have schema should go into theatennamespace rather thanprim,primnamespace should only be reserved for the ops that does not have a schema.Differential Revision: D15523444