Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Opens a compiled model file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CoreML 7.4 Yes No Yes, macOS only No Yes
MBS( "CoreML.OpenModel"; Path )   More


Parameter Description Example value
Path The path to the model file. "/test.mlmodelc"


Returns OK or error.


Opens a compiled model file.
If the model is not compiled (*.mlmodel), you can compile it with CoreML.CompileModel.
Returns error message if there is a problem.


Load Model:

Set Variable [ $$ML ; Value: MBS("CoreML.OpenModel"; CoreML::Model Path) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to load" ; $$ML ]
    Set Variable [ $$ML ; Value: "" ]
    Set Field [ CoreML::Model Description ; MBS("CoreML.Description"; $$ML) ]
End If

See also

Example Databases

Created 16th September 2017, last changed 16th September 2017

CoreML.GetUsesCPUOnly   -   CoreML.PredictionFromFeatures

Feedback: Report problem or ask question.

MBS FileMaker Plugins