MLKLocalModel
@interface MLKLocalModel : NSObject
デバイスにローカルに保存されているモデル。
-
デバイスにローカルに保存されているモデルファイルへの絶対パス。
宣言
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull path;
-
デバイスにローカルに保存されているモデル マニフェスト ファイルへの絶対パス。
nil
: モデルにマニフェストがない場合。宣言
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *manifestPath;
-
指定されたモデルファイルのパスを使用して新しいインスタンスを作成します。
宣言
Objective-C
- (nonnull instancetype)initWithPath:(nonnull NSString *)path;
パラメータ
path
デバイスにローカルに保存されているモデルファイルへの絶対パス。
戻り値
新しい
LocalModel
インスタンス。 -
AutoML Vision Edge モデルの指定されたマニフェスト ファイルのパスを使用して新しいインスタンスを作成します。
宣言
Objective-C
- (nullable instancetype)initWithManifestPath:(nonnull NSString *)manifestPath;
パラメータ
manifestPath
デバイスにローカルに保存されている AutoML Vision Edge モデルのマニフェストへの絶対パス。
戻り値
新しい
LocalModel
インスタンス。nil
(指定されたmanifestPath
のモデル マニフェストが存在しないか無効な場合)。 -
ご利用いただけません。
宣言
Objective-C
- (nonnull instancetype)init;