update objectivec directory from onnxruntime/objectivec
This commit is contained in:
@@ -70,7 +70,22 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (BOOL)appendCoreMLExecutionProviderWithOptions:(ORTCoreMLExecutionProviderOptions*)options
|
||||
error:(NSError**)error;
|
||||
|
||||
/**
|
||||
* Enables the CoreML execution provider in the session configuration options.
|
||||
* It is appended to the execution provider list which is ordered by
|
||||
* decreasing priority.
|
||||
*
|
||||
* @param provider_options The CoreML execution provider options in dict.
|
||||
* available keys-values: more detail in core/providers/coreml/coreml_execution_provider.h
|
||||
* kCoremlProviderOption_MLComputeUnits: one of "CPUAndNeuralEngine", "CPUAndGPU", "CPUOnly", "All"
|
||||
* kCoremlProviderOption_ModelFormat: one of "MLProgram", "NeuralNetwork"
|
||||
* kCoremlProviderOption_RequireStaticInputShapes: "1" or "0"
|
||||
* kCoremlProviderOption_EnableOnSubgraphs: "1" or "0"
|
||||
* @param error Optional error information set if an error occurs.
|
||||
* @return Whether the provider was enabled successfully.
|
||||
*/
|
||||
- (BOOL)appendCoreMLExecutionProviderWithOptionsV2:(NSDictionary*)provider_options
|
||||
error:(NSError**)error;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -50,6 +50,7 @@ typedef NS_ENUM(int32_t, ORTGraphOptimizationLevel) {
|
||||
ORTGraphOptimizationLevelNone,
|
||||
ORTGraphOptimizationLevelBasic,
|
||||
ORTGraphOptimizationLevelExtended,
|
||||
ORTGraphOptimizationLevelLayout,
|
||||
ORTGraphOptimizationLevelAll,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user