Exports a Core ML model file for use in your app.
SDKs
- macOS 10.14+
- Xcode 11.0+
Framework
- Create ML
Declaration
func write(toFile path: String, metadata: MLModel Metadata? = nil) throws
Parameters
path
A file system path where the model file should be written.
metadata
Descriptive information to include with the exported model file.
Discussion
This method writes the Core ML model to the specified path, creating intermediate directories as needed and expanding any tildes (~) in the path.
If the path you specify is a directory path, the framework writes the model to that directory with the name Sound
.