Page Summary
-
LocalModelrepresents a machine learning model stored locally on the device. -
It can be initialized with either a model file path or a manifest file path (for AutoML Vision Edge models).
-
The
pathproperty provides the absolute path to the model file. -
The
manifestPathproperty provides the absolute path to the model manifest file, if available.
LocalModel
class
LocalModel
:
NSObject
A model stored locally on the device.
-
An absolute path to a model file stored locally on the device.
Declaration
Swift
var path : String { get } -
An absolute path to a model manifest file stored locally on the device.
nilif the model does not have a manifest.Declaration
Swift
var manifestPath : String ? { get } -
Creates a new instance with the given model file path.
Declaration
Swift
init ( path : String )Parameters
pathAbsolute path to a model file stored locally on the device.
Return Value
A new
LocalModelinstance. -
Creates a new instance with the given manifest file path of an AutoML Vision Edge model.
Declaration
Swift
init ?( manifestPath : String )Parameters
manifestPathAbsolute path to an AutoML Vision Edge model manifest stored locally on the device.
Return Value
A new
LocalModelinstance.nilif the model manifest at the givenmanifestPathis either missing or invalid. -
Unavailable.


