Removed convenience initializer
This commit is contained in:
		
							parent
							
								
									163b13d7de
								
							
						
					
					
						commit
						5ab17fe686
					
				| 
						 | 
					@ -29,20 +29,6 @@ NS_SWIFT_NAME(TaskOptions)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@property(nonatomic, copy) MPPBaseOptions *baseOptions;
 | 
					@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
 | 
					@end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
NS_ASSUME_NONNULL_END
 | 
					NS_ASSUME_NONNULL_END
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,12 +25,4 @@
 | 
				
			||||||
  return self;
 | 
					  return self;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- (instancetype)initWithModelPath:(NSString *)modelPath {
 | 
					 | 
				
			||||||
  self = [self init];
 | 
					 | 
				
			||||||
  if (self) {
 | 
					 | 
				
			||||||
    _baseOptions.modelAssetPath = modelPath;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					@end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user