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.
nil
if 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
path
Absolute path to a model file stored locally on the device.
Return Value
A new
LocalModel
instance. -
Creates a new instance with the given manifest file path of an AutoML Vision Edge model.
Declaration
Swift
init?(manifestPath: String)
Parameters
manifestPath
Absolute path to an AutoML Vision Edge model manifest stored locally on the device.
Return Value
A new
LocalModel
instance.nil
if the model manifest at the givenmanifestPath
is either missing or invalid. -
Unavailable.