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

[PJRT] Fix tensor element type for signed integers #19496

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions integrations/pjrt/src/iree_pjrt/common/api_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@ iree_status_t MapElementTypeToMlirType(iree_hal_element_type_t element_type,
*ty = "i1";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_SINT_4:
*ty = "si4";
*ty = "i4";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_SINT_8:
*ty = "si8";
*ty = "i8";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_SINT_16:
*ty = "si16";
*ty = "i16";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_SINT_32:
*ty = "si32";
*ty = "i32";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_SINT_64:
*ty = "si64";
*ty = "i64";
return iree_ok_status();
case IREE_HAL_ELEMENT_TYPE_UINT_4:
*ty = "ui4";
Expand Down
Loading