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

[VitisAI] change all support tensor type from ir 9 to ir 10 #23204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions include/onnxruntime/core/framework/data_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class DataTypeImpl {
static const std::vector<MLDataType>& AllTensorTypes(); // up to IR4 (no float 8), deprecated
static const std::vector<MLDataType>& AllTensorTypesIRv4();
static const std::vector<MLDataType>& AllTensorTypesIRv9();
static const std::vector<MLDataType>& AllTensorTypesIRv10();

static const std::vector<MLDataType>& AllFixedSizeTensorTypes(); // up to IR4 (no float 8), deprecated
static const std::vector<MLDataType>& AllFixedSizeTensorTypesIRv4();
Expand Down
6 changes: 6 additions & 0 deletions onnxruntime/core/framework/data_types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,12 @@ const std::vector<MLDataType>& DataTypeImpl::AllTensorTypesIRv9() {
return all_tensor_types;
}

const std::vector<MLDataType>& DataTypeImpl::AllTensorTypesIRv10() {
static std::vector<MLDataType> all_tensor_types =
GetTensorTypesFromTypeList<element_type_lists::AllIRv10>();
return all_tensor_types;
}

const std::vector<MLDataType>& DataTypeImpl::AllFixedSizeSequenceTensorTypes() {
return AllFixedSizeSequenceTensorTypesIRv4();
}
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/core/session/custom_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static constexpr uint32_t min_ort_version_with_shape_inference = 17;
#endif

#if !defined(DISABLE_FLOAT8_TYPES)
#define SUPPORTED_TENSOR_TYPES DataTypeImpl::AllTensorTypesIRv9()
#define SUPPORTED_TENSOR_TYPES DataTypeImpl::AllTensorTypesIRv10()
#else
#define SUPPORTED_TENSOR_TYPES DataTypeImpl::AllTensorTypesIRv4()
#endif
Expand Down
Loading