Skip to content
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

[runtime][python] add f8 element types #19928

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

sogartar
Copy link
Contributor

@sogartar sogartar commented Feb 6, 2025

These types are not available in NumPy so no interoperability is provided for them.

These types are not available in numpy so no interoperability is
provided for them.

Signed-off-by: Boian Petkantchin <boian.petkantchin@amd.com>
@@ -1350,6 +1350,10 @@ void SetupHalBindings(nanobind::module_ m) {
.value("UINT_16", IREE_HAL_ELEMENT_TYPE_UINT_16)
.value("UINT_32", IREE_HAL_ELEMENT_TYPE_UINT_32)
.value("UINT_64", IREE_HAL_ELEMENT_TYPE_UINT_64)
.value("FLOAT_8_E4M3", IREE_HAL_ELEMENT_TYPE_FLOAT_8_E4M3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should probably go at the end to keep this list in the same order as
runtime/src/iree/hal/buffer_view.h

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Boian Petkantchin <boian.petkantchin@amd.com>
@sogartar sogartar enabled auto-merge (squash) February 6, 2025 15:44
@sogartar sogartar merged commit d2c4d83 into iree-org:main Feb 6, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants