From 3bd6db30e2e71dc65f1e31806128d40b85fab990 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Sat, 20 Jul 2024 11:41:50 +1000 Subject: [PATCH] fix ifdefs --- onnxruntime/core/providers/coreml/model/model.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onnxruntime/core/providers/coreml/model/model.h b/onnxruntime/core/providers/coreml/model/model.h index 57d4b23eeb234..5bce7cf996e4e 100644 --- a/onnxruntime/core/providers/coreml/model/model.h +++ b/onnxruntime/core/providers/coreml/model/model.h @@ -19,6 +19,7 @@ #else typedef struct objc_object MLMultiArray; #endif +#endif namespace onnxruntime { namespace coreml { @@ -39,6 +40,7 @@ using GetOutputTensorMutableRawDataFn = std::function static_shape)>; +#if defined(__APPLE__) // helper function that we unit test Status GetMLMultiArrayCopyInfo(const MLMultiArray* array, int64_t* num_blocks, int64_t* block_size, int64_t* stride); #endif