1 #import <torch/csrc/jit/backends/coreml/objc/PTMCoreMLFeatureProvider.h> 2 3 #import <CoreML/CoreML.h> 4 5 NS_ASSUME_NONNULL_BEGIN 6 7 @interface PTMCoreMLExecutor : NSObject 8 9 @property(atomic, strong) MLModel* model; 10 11 - (instancetype)initWithFeatureNames:(NSArray<NSString*>*)featureNames; 12 13 - (void)setInputs:(c10::impl::GenericList)inputs; 14 15 - (id<MLFeatureProvider>)forward:(NSError**)error; 16 17 @end 18 19 NS_ASSUME_NONNULL_END 20