I found that MLModel has a initializer which is:
init(contentsOf url: URL) throws {
self.model = try MLModel(contentsOf: url)
}Does it mean that .mlmodel can be loaded dynamically?
I found that MLModel has a initializer which is:
init(contentsOf url: URL) throws {
self.model = try MLModel(contentsOf: url)
}Does it mean that .mlmodel can be loaded dynamically?
Yes, as of beta 4 this appears you be possible. You can download your .mlmodel file, call MLModel.compileModel(at), and then instantiate the model with that init method.