The array of dimensions for the input at a given index. Each dimension should
have an NSUInteger value. For example, for a 2 dimensional input with 4 rows and 9 columns,
the corresponding dimensions should be provided as an NSArray containing two NSNumbers
with unsigned integer values, 4 and 9 respectively.
error
The error, if any, during the operation, including
MachineLearningErrorDomainCode.InvalidArgument when:
The array of dimensions for the output at a given index. Each dimension should
have an NSUInteger value. For example, for a 2 dimensional output with 4 rows and 9 columns,
the corresponding dimensions should be provided as an NSArray containing two NSNumbers with
unsigned integer values, 4 and 9 respectively.
error
The error, if any, during the operation, including
MachineLearningErrorDomainCode.InvalidArgument when:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-11 UTC."],[],[],null,["# FirebaseMLModelInterpreter Framework Reference\n\nModelInputOutputOptions\n=======================\n\n class ModelInputOutputOptions : NSObject\n\nOptions for a custom model specifying input and output data types and dimensions.\n- `\n ``\n ``\n `\n\n ### [setInputFormat(index:type:dimensions:)](#/c:objc(cs)FIRModelInputOutputOptions(im)setInputFormatForIndex:type:dimensions:error:)\n\n `\n ` \n Sets the type and dimensions for the input at a given index. \n\n #### Declaration\n\n Swift \n\n func setInputFormat(index: UInt, type: ../Enums/ModelElementType.html, dimensions: [NSNumber]) throws\n\n #### Parameters\n\n |--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*index*` ` | The index of the input to configure. |\n | ` `*type*` ` | The element type for the input at a given index. |\n | ` `*dimensions*` ` | The array of dimensions for the input at a given index. Each dimension should have an `NSUInteger` value. For example, for a 2 dimensional input with 4 rows and 9 columns, the corresponding dimensions should be provided as an `NSArray` containing two `NSNumber`s with unsigned integer values, 4 and 9 respectively. |\n | ` `*error*` ` | The error, if any, during the operation, including `MachineLearningErrorDomainCode.InvalidArgument` when: - `type` is invalid. - `dimensions` are nil or empty. - Any of the `dimensions` is 0 (it must be positive). \u003cbr /\u003e |\n\n #### Return Value\n\n Whether the operation is successful.\n- `\n ``\n ``\n `\n\n ### [setOutputFormat(index:type:dimensions:)](#/c:objc(cs)FIRModelInputOutputOptions(im)setOutputFormatForIndex:type:dimensions:error:)\n\n `\n ` \n Sets the type and dimensions for the output at a given index. \n\n #### Declaration\n\n Swift \n\n func setOutputFormat(index: UInt, type: ../Enums/ModelElementType.html, dimensions: [NSNumber]) throws\n\n #### Parameters\n\n |--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*index*` ` | The index of the output to configure. |\n | ` `*type*` ` | The element type for the output at a given index. |\n | ` `*dimensions*` ` | The array of dimensions for the output at a given index. Each dimension should have an `NSUInteger` value. For example, for a 2 dimensional output with 4 rows and 9 columns, the corresponding dimensions should be provided as an `NSArray` containing two `NSNumber`s with unsigned integer values, 4 and 9 respectively. |\n | ` `*error*` ` | The error, if any, during the operation, including `MachineLearningErrorDomainCode.InvalidArgument` when: - `type` is invalid. - `dimensions` are nil or empty. - Any of the `dimensions` is 0 (it must be positive). \u003cbr /\u003e |\n\n #### Return Value\n\n Whether the operation is successful."]]