-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Use TensorOptions for legacy constructors #73824
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 code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <[email protected]> [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 8c8ecc2 (more details on the Dr. CI page):
🕵️ 8 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
This code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <ezyangfb.com> [ghstack-poisoned]
This code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <ezyangfb.com> ghstack-source-id: 61b565b Pull Request resolved: #73824
This code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <ezyangfb.com> [ghstack-poisoned]
This code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <ezyangfb.com> [ghstack-poisoned]
This code has traveled a long and winding road (doo doo). First, some back story: originally, all of this code was written in term of Backend, ScalarType and Device, and things were, well, reasonable. But then Backend became DispatchKey, and then it became TensorOptions but someone (ahem, me) was too lazy to migrate the separate ScalarType and Device into the TensorOptions, because it would involve editing a lot of code. Well I have FINALLY made good on the promised check, by absorbing ScalarType and Device into the TensorOptions. We rely heavily on the optional fields in TensorOptions; the idea is that if it is not set, we are in a context where we aren't expecting any particular scalar type / device; otherwise we require them to be set particularly. Signed-off-by: Edward Z. Yang <ezyangfb.com> ghstack-source-id: 1d148e2 Pull Request resolved: #73824
|
This PR has gotten out of control, I may need to shelve it |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack:
This code has traveled a long and winding road (doo doo). First,
some back story: originally, all of this code was written in term of
Backend, ScalarType and Device, and things were, well, reasonable.
But then Backend became DispatchKey, and then it became TensorOptions
but someone (ahem, me) was too lazy to migrate the separate ScalarType
and Device into the TensorOptions, because it would involve editing
a lot of code. Well I have FINALLY made good on the promised check,
by absorbing ScalarType and Device into the TensorOptions. We rely
heavily on the optional fields in TensorOptions; the idea is that if
it is not set, we are in a context where we aren't expecting any
particular scalar type / device; otherwise we require them to be set
particularly.
Signed-off-by: Edward Z. Yang [email protected]