diff --git a/ports/onnxruntime/18-fix-coreml-external-data-path.patch b/ports/onnxruntime/18-fix-coreml-external-data-path.patch index 61582b0..a4952db 100644 --- a/ports/onnxruntime/18-fix-coreml-external-data-path.patch +++ b/ports/onnxruntime/18-fix-coreml-external-data-path.patch @@ -1,15 +1,12 @@ diff --git a/onnxruntime/core/framework/tensorprotoutils.cc b/onnxruntime/core/framework/tensorprotoutils.cc -index e36be3f..6336e3 100644 --- a/onnxruntime/core/framework/tensorprotoutils.cc +++ b/onnxruntime/core/framework/tensorprotoutils.cc -@@ -359,7 +359,9 @@ Status TensorProtoWithExternalDataToTensorProto( +@@ -318,7 +318,7 @@ } else { // Load the external data into memory std::vector unpacked_data; - ORT_RETURN_IF_ERROR(ReadExternalDataForTensor(ten_proto, model_path, unpacked_data)); -+ // ReadExternalDataForTensor expects a directory, not a file path. -+ // Fix: use parent_path() to match UnpackInitializerData(). See microsoft/onnxruntime#28005. + ORT_RETURN_IF_ERROR(ReadExternalDataForTensor(ten_proto, model_path.parent_path(), unpacked_data)); // Set the raw data in the new tensor - onnxruntime::utils::SetRawDataInTensorProto(result, unpacked_data.data(), unpacked_data.size()); + result.set_raw_data(unpacked_data.data(), unpacked_data.size()); diff --git a/ports/onnxruntime/vcpkg.json b/ports/onnxruntime/vcpkg.json index 8316616..fc17d01 100644 --- a/ports/onnxruntime/vcpkg.json +++ b/ports/onnxruntime/vcpkg.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "name": "onnxruntime", "version": "1.24.2", - "port-version": 4, + "port-version": 5, "description": "ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator", "homepage": "https://onnxruntime.ai/", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 6de5cac..2bacdb1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -38,7 +38,7 @@ }, "onnxruntime": { "baseline": "1.24.2", - "port-version": 4 + "port-version": 5 }, "opencl": { "baseline": "2024.10.24", diff --git a/versions/o-/onnxruntime.json b/versions/o-/onnxruntime.json index 2822dcc..98056a7 100644 --- a/versions/o-/onnxruntime.json +++ b/versions/o-/onnxruntime.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "860cf68ca8928c8f6500008c0606cd9bfd1ada9e", + "version": "1.24.2", + "port-version": 5 + }, { "git-tree": "e33569d0c4b4b745e3bd4d5b681ec2f0220fb56b", "version": "1.24.2",