Removed convenience initializer

This commit is contained in:
Prianka Liz Kariat 2022-12-15 10:28:50 +05:30
parent 163b13d7de
commit 5ab17fe686
2 changed files with 0 additions and 22 deletions

View File

@ -29,20 +29,6 @@ NS_SWIFT_NAME(TaskOptions)
*/
@property(nonatomic, copy) MPPBaseOptions *baseOptions;
/**
* Initializes a new `MPPTaskOptions` with the absolute path to the model file
* stored locally on the device, set to the given the model path.
*
* @discussion The external model file must be a single standalone TFLite file. It must be packed
* with TFLite Model Metadata[1] and associated files. Failure to provide the
* necessary metadata and associated files will result in errors.
*
* @param modelPath An absolute path to a TensorFlow Lite model file stored locally on the device.
*
* @return An instance of `MPPTaskOptions` initialized to the given model path.
*/
- (instancetype)initWithModelPath:(NSString *)modelPath;
@end
NS_ASSUME_NONNULL_END

View File

@ -25,12 +25,4 @@
return self;
}
- (instancetype)initWithModelPath:(NSString *)modelPath {
self = [self init];
if (self) {
_baseOptions.modelAssetPath = modelPath;
}
return self;
}
@end