Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Adds an array parameter.

Component Version macOS Windows Linux Server iOS SDK
CoreML 7.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CoreML.AddArrayParameter"; CoreMLRef; Name; Values; Type )   More


Parameter Description Example
CoreMLRef The reference number to the model. $Model
Name The name of the parameter. "test"
Values The list with values.
For floating values, please use dot as decimal separator.
Type The type of array to pass.
Can be Double, Float or Int32.


Returns OK or error.


Adds an array parameter.
Please pass list of values for the whole array as we pick the size by the numbers of values.
Please use CoreML.Add2DArrayParameter for 2D arrays.


Add two array parameters:

Set Variable [ $r; Value: MBS( "CoreML.AddArrayParameter"; $CoreMLRef; "wordIDs"; ""; "double" ) ]
Set Variable [ $r; Value: MBS( "CoreML.AddArrayParameter"; $CoreMLRef; "wordTypes"; ""; "double" ) ]

See also

Blog Entries

This function checks for a license.

Created 16th September 2017, last changed 23th April 2020

CoreML.Add2DArrayParameter - CoreML.AddDoubleParameter