CoreML.Add2DArrayParameter
--------------------------

Adds a 2D array parameter.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreML](component_CoreML.md) | [10.2](newinversion102.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "CoreML.Add2DArrayParameter"; CoreMLRef; Name; Size1; Size2; Values; Type ) 

**MBS**( **"CoreML.Add2DArrayParameter";** /\* Adds a 2D array parameter. \*/  
**$CoreMLRef**; /\* The reference number to the model.e.g. $Model \*/   
**$Name**; /\* The name of the parameter.e.g. "test" \*/   
**$Size1**; /\* Size of first dimension.e.g. 123 \*/   
**$Size2**; /\* Size of second dimension.e.g. 234 \*/   
**$Values**; /\* The list with values.  
For floating values, please use dot as decimal separator.e.g. "1¶3¶5" \*/   
**$Type**) /\* The type of array to pass.  
Can be Double, Float or Int32.e.g. "Int32" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| CoreMLRef | The reference number to the model. | $Model |
| Name | The name of the parameter. | "test" |
| Size1 | Size of first dimension. | 123 |
| Size2 | Size of second dimension. | 234 |
| Values | The list with values.   For floating values, please use dot as decimal separator. | "1¶3¶5" |
| Type | The type of array to pass.   Can be Double, Float or Int32. | "Int32" |

### Result

Returns OK or error.

### Description

Adds a 2D array parameter.  
Please pass list of values for the whole array, e.g. Size1 \* Size2 values.  
If you pass to many values, we ignore that and if you pass too few, we simply don't set the reminding values.  
### Examples

Add one 2D array parameters:

 Set Variable \[ $r ; Value: MBS ( "[CoreML.AddArrayParameter](CoreMLAddArrayParameter.md)"; $CoreMLRef ; "values"; 2; 2; "1.2 ¶1.5 ¶1.8 ¶2.9 "; "double" ) \]  
Set parameters for BERT-SQuAD mlmodel:

 MBS ("CoreML.Add2DArrayParameter"; $$ML ; "wordIDs" ; 1; 384; CoreML::wordsIDs ; "double")  
MBS ("CoreML.Add2DArrayParameter"; $$ML ; "wordTypes" ; 1; 384; CoreML::wordTypes ; "double")  
### See also

- [CoreML.AddArrayParameter](CoreMLAddArrayParameter.md)
- [CoreML.AddDoubleParameter](CoreMLAddDoubleParameter.md)
- [CoreML.AddImageParameter](CoreMLAddImageParameter.md)
- [CoreML.AddIntegerParameter](CoreMLAddIntegerParameter.md)

### Release notes

- **Version 10.2**
    - Added [CoreML.Add2DArrayParameter](https://www.mbsplugins.eu/CoreMLAdd2DArrayParameter.shtml) function.

### Blog Entries

- [Checkout Machine Learning features in FileMaker](https://www.mbsplugins.de/archive/2020-05-22/Checkout_Machine_Learning_feat/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-12/Neues_MBS_FileMaker_Plugin_102/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-05-12/MBS_FileMaker_Plugin_102_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr5](https://www.mbsplugins.de/archive/2020-04-27/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th April 2020 , last changed 25th April 2020

  
[CoreLocation.verticalAccuracy](CoreLocationverticalAccuracy.md) - [CoreML.AddArrayParameter](CoreMLAddArrayParameter.md)

[HTML Version](CoreMLAdd2DArrayParameter.shtml)