diff --git a/onnxruntime/core/providers/coreml/model/model.mm b/onnxruntime/core/providers/coreml/model/model.mm index 4ba40659d5cdb..f4d3830cef58f 100644 --- a/onnxruntime/core/providers/coreml/model/model.mm +++ b/onnxruntime/core/providers/coreml/model/model.mm @@ -122,8 +122,7 @@ Status CreateInputFeatureProvider(const std::unordered_map& inputs, } else if (coreml_compute_unit & COREML_FLAG_USE_CPU_AND_GPU) { config.computeUnits = MLComputeUnitsCPUAndGPU; } else if (coreml_compute_unit & COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE) { - if (@available(macOS 13.0, *)) - { + if (@available(macOS 13.0, *)) { config.computeUnits = MLComputeUnitsCPUAndNeuralEngine; // Apple Neural Engine } else { LOGS(logger_, WARNING) << "macOS 13.0+ is required for ANE, using CPU instead.";