Skip to content

Commit

Permalink
fix ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
skottmckay committed Jul 20, 2024
1 parent ca70df2 commit 3bd6db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onnxruntime/core/providers/coreml/model/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#else
typedef struct objc_object MLMultiArray;
#endif
#endif

namespace onnxruntime {
namespace coreml {
Expand All @@ -39,6 +40,7 @@ using GetOutputTensorMutableRawDataFn = std::function<void*(const std::string& n
int32_t requested_onnx_tensor_element_type,
gsl::span<const int64_t> 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
Expand Down

0 comments on commit 3bd6db3

Please sign in to comment.