Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Compiles a model file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CoreML | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The native file path to the model. | "/Users/cs/Desktop/test.mlmodel" |
Returns OK or error.
Compile model when needed:
If [ Right ( CoreML::Model Path; 8 ) = ".mlmodel" ]
Set Variable [ $r ; Value: MBS("CoreML.CompileModel"; CoreML::Model Path) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to compile" ; $r ]
Set Variable [ $$ML ; Value: "" ]
Else
Set Field [ CoreML::Model Path ; $r ]
End If
End If
Compile a model:
MBS( "CoreML.CompileModel"; "/Users/cs/Desktop/UpdatableDrawingClassifier.mlmodel" )
This function checks for a license.
Created 16th September 2017, last changed 16th December 2019