xref: /aosp_15_r20/external/executorch/backends/apple/coreml/runtime/delegate/ETCoreMLDefaultModelExecutor.h (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 //
2 //  ETCoreMLDefaultModelExecutor.h
3 //  executorchcoreml_tests
4 //
5 //  Created by Gyan Sinha on 2/25/24.
6 //
7 
8 #import <CoreML/CoreML.h>
9 
10 #import <ETCoreMLModelExecutor.h>
11 
12 @class ETCoreMLModel;
13 
14 NS_ASSUME_NONNULL_BEGIN
15 /// The default model executor, the executor ignores logging options.
16 __attribute__((objc_subclassing_restricted))
17 @interface ETCoreMLDefaultModelExecutor : NSObject<ETCoreMLModelExecutor>
18 
19 + (instancetype)new NS_UNAVAILABLE;
20 
21 - (instancetype)init NS_UNAVAILABLE;
22 
23 /// Constructs an `ETCoreMLDefaultModelExecutor` from the given model.
24 ///
25 /// @param model The model.
26 - (instancetype)initWithModel:(ETCoreMLModel*)model NS_DESIGNATED_INITIALIZER;
27 
28 /// The model.
29 @property (readonly, strong, nonatomic) ETCoreMLModel* model;
30 
31 /// If set to `YES` then output backing are ignored.
32 @property (readwrite, atomic) BOOL ignoreOutputBackings;
33 
34 @end
35 
36 NS_ASSUME_NONNULL_END
37