-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[MLIR][Python][NFC] move Py* types #155719
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
base: main
Are you sure you want to change the base?
Conversation
7eb55a3
to
06eb0f6
Compare
Turns out |
06eb0f6
to
7df100f
Compare
7df100f
to
cbcfaee
Compare
mlirAttributes.reserve(nb::len(attributes)); | ||
for (auto attribute : attributes) { | ||
mlirAttributes.push_back(pyTryCast<PyAttribute>(attribute)); | ||
[](const nb::sequence &py_values, DefaultingPyMlirContext ctx) { |
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.
Random spot check: nb::list
to nb::sequence
- nice!
if (is_true < 0) { | ||
throw nb::python_error(); | ||
} | ||
values.push_back(is_true); |
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.
Random spot check: you're pushing is_true
here, which I believe is a Boolean value and not the attribute element itself. I think.
WIP