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
Loads a model for Windows Machine Learning.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsML | 10.5 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
Parameter | Description | Example |
---|---|---|
Path | The native file path to the model file. | "C:\Users\Christian\Desktop\SqueezeNet.onnx" |
Returns reference number or error.
Load a model
Set Variable [ $model ; Value: MBS("WindowsML.Open"; "C:\Users\Christian\Desktop\SqueezeNet.onnx") ]
Example result: 73001
Load a model and show description:
# Load Model in file WindowsML
Go to Layout [ “WindowsML” (WindowsML) ; Animation: None ]
#
Set Variable [ $WinMLRef ; Value: MBS( "WindowsML.Open"; WindowsML::Model File Path ) ]
If [ MBS("ISError") ]
Show Custom Dialog [ "Failed to load model" ; $WinMLRef ]
Else
Set Variable [ $$WinMLRef ; Value: $WinMLRef ]
Set Field [ WindowsML::Model Description ; MBS("JSON.Colorize"; MBS( "WindowsML.Description"; $$WinMLRef )) ]
End If
This function checks for a license.
Created 26th September 2020, last changed 27th September 2020