Can .mlmodel be loaded dynamically? For example, from servers

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?

Answered by kerfuffle in 248710022

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.

Accepted Answer

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.

Can .mlmodel be loaded dynamically? For example, from servers
 
 
Q