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