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
Add complex IValues #50883
Add complex IValues #50883
Conversation
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit c42bd1a (more details on the Dr. CI page):
2 failures not recognized by patterns:
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. |
[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.
Nice! After further discussion with the JIT team about the place of ComplexDoubleType
in the type system, we concluded that it makes more sense for it to be a subtype of only Any
, and not of NumberType
. Other than that, the rest looks good!
[ghstack-poisoned]
ghstack-source-id: a9c8c5ab3dda0c139518f72e4e1adc2c3048acb6 Pull Request resolved: #50883
@@ -175,8 +175,8 @@ class OneForward(Interface): | |||
|
|||
TEST(TypeEquality, TupleEquality) { | |||
// Tuples should be structurally typed | |||
auto type = TupleType::create({IntType::get(), TensorType::get(), FloatType::get()}); | |||
auto type2 = TupleType::create({IntType::get(), TensorType::get(), FloatType::get()}); | |||
auto type = TupleType::create({IntType::get(), TensorType::get(), FloatType::get(), ComplexDoubleType::get()}); |
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.
Are these changes for testing ComplexDoubleType::operator==
?
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.
yeah and also indirectly testing ComplexDoubleType::get()
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.
Let's make sure to follow up on the correct place for ComplexDoubleType
in the JIT type system and fix it if needed in the future.
Approval contingent on tests passing.
Synced offline: It probably makes sense for |
Differential Revision: [D26003682](https://our.internmc.facebook.com/intern/diff/D26003682) [ghstack-poisoned]
Differential Revision: [D26003682](https://our.internmc.facebook.com/intern/diff/D26003682) [ghstack-poisoned]
Differential Revision: [D26003682](https://our.internmc.facebook.com/intern/diff/D26003682) [ghstack-poisoned]
@anjali411 merged this pull request in 9ac30d9. |
Stack from ghstack:
Differential Revision: D26003682