[[["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\nType Definitions\n================\n\nThe following type definitions are available globally.\n- `\n ``\n ``\n `\n\n ### [ModelInterpreterRunCallback](#/c:FIRModelInterpreter.h@T@FIRModelInterpreterRunCallback)\n\n `\n ` \n A block containing an array of custom model inference outputs, or nil if there's an error. \n\n #### Declaration\n\n Swift \n\n typealias ModelInterpreterRunCallback = (FIRModelOutputs?, Error?) -\u003e Void\n\n #### Parameters\n\n |-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*outputs*` ` | An array of results of model inference. Returns nil when there is an error. |\n | ` `*error*` ` | The error, if any, while running the custom model inference, including `MachineLearningErrorDomainCode.InvalidArgument` when: - `options` are nil. - Either input or outoutput data formats in `options` are empty. - The number of inputs do not match the data options. - The input byte buffer does not have the expected size. - The input data is neither a byte buffer (`NSData`) nor an array. - The input dimension does not match the input format specified in `options`. - The input element type in the data options is unexpected. - The input element type is not a number as specified in the data options. - The input type specified in the data options does not match the model. - Dimension of input data does not match the data options. - An element type in the data options does not match the actual output. - The total size in bytes specified in the data options does not match the actual output. - The number of dimensions in the data options does not match the actual output. - The shape in the data optinos does not match the actual output. - The output element type in the data options is unexpected. `MachineLearningErrorDomainCode.OutOfRange` when: - An input index in `options` is out of range. - An output index in `options` is out of range. `MachineLearningErrorDomainCode.Unknown` when: - No output was generated by the custom model. - There are no tensors matching an output index in the data options. `MachineLearningErrorDomainCode.Internal` when: - An input tensor cannot be located. \u003cbr /\u003e |\n\n- `\n ``\n ``\n `\n\n ### [ModelInterpreterInputOutputOpIndexCallback](#/c:FIRModelInterpreter.h@T@FIRModelInterpreterInputOutputOpIndexCallback)\n\n `\n ` \n A block containing the index for an input or an output op. \n\n #### Declaration\n\n Swift \n\n typealias ModelInterpreterInputOutputOpIndexCallback = (NSNumber?, Error?) -\u003e Void\n\n #### Parameters\n\n |---------------|------------------------------------------------------------------------------------------------|\n | ` `*index*` ` | The index, as an `unsignedIntValue`, for an input or output op or `nil` if there was an error. |\n | ` `*error*` ` | An error while getting the index or `nil`. |"]]