Add noexcep_operators to onnxruntime internal libraries (#17850)

This commit is contained in:
Baiju Meswani 2023-10-09 16:29:41 -07:00 committed by GitHub
parent 406cd324e0
commit 9c716f4557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -217,6 +217,7 @@ if (onnxruntime_USE_EXTENSIONS)
list(APPEND onnxruntime_INTERNAL_LIBRARIES
onnxruntime_extensions
ocos_operators
noexcep_operators
)
endif()

View file

@ -795,7 +795,6 @@ common::Status CreateCustomRegistry(gsl::span<OrtCustomOpDomain* const> op_domai
// GetInputMemoryType was introduced in ver 13. This check allows custom ops compiled using older versions
// to work with newer versions (> 12) of the ORT binary.
if (op->version > 12) {
auto input_count = op->GetInputTypeCount(op);
for (size_t i = 0; i < input_count; i++) {
def_builder.InputMemoryType(op->GetInputMemoryType(op, i), i);
}