File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
onnxruntime/core/providers/coreml/model Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -369,10 +369,8 @@ void ProfileComputePlan(NSURL* compileUrl, MLModelConfiguration* config) {
369369#define HAS_COREMLOPTIMIZATIONHINT 0
370370#endif
371371
372-
373372void ConfigureOptimizationHints (MLModelConfiguration* config, const CoreMLOptions& coreml_options) {
374- if (HAS_COREML8_OR_LATER) {
375- #if HAS_COREMLOPTIMIZATIONHINT
373+ #if HAS_COREMLOPTIMIZATIONHINT && CAN_USE_COREML8_OR_LATER
376374 MLOptimizationHints* optimizationHints = [[MLOptimizationHints alloc ] init ];
377375 if (coreml_options.UseStrategy (" FastPrediction" )) {
378376 optimizationHints.specializationStrategy = MLSpecializationStrategyFastPrediction;
@@ -384,7 +382,6 @@ void ConfigureOptimizationHints(MLModelConfiguration* config, const CoreMLOption
384382 // not set
385383 }
386384#endif
387- }
388385}
389386
390387Status CompileOrReadCachedModel (NSURL * modelUrl, const CoreMLOptions& coreml_options,
You can’t perform that action at this time.
0 commit comments