FirebaseMLModelInterpreter Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FIRModelOutputs
@interface FIRModelOutputs : NSObject
Inference results of a Firebase custom model.
-
Declaration
Objective-C
- (nonnull instancetype)init;
-
Returns the output for a given index.
Declaration
Objective-C
- (nullable id)outputAtIndex:(NSUInteger)index
error:(NSError *_Nullable *_Nullable)error;
Parameters
index
|
The index of the output to get.
|
error
|
The error, if any, during the operation, including
MachineLearningErrorDomainCode.InvalidArgument when:
- There is no model output with given index.
|
Return Value
The index
-th output. Returns nil if there is an error.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.
[null,null,["Last updated 2021-02-11 UTC."],[],[],null,["# FirebaseMLModelInterpreter Framework Reference\n\nFIRModelOutputs\n===============\n\n\n @interface FIRModelOutputs : NSObject\n\nInference results of a Firebase custom model.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)FIRModelOutputs(im)init)\n\n `\n ` \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [-outputAtIndex:error:](#/c:objc(cs)FIRModelOutputs(im)outputAtIndex:error:)\n\n `\n ` \n Returns the output for a given index. \n\n #### Declaration\n\n Objective-C \n\n - (nullable id)outputAtIndex:(NSUInteger)index\n error:(NSError *_Nullable *_Nullable)error;\n\n #### Parameters\n\n |---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*index*` ` | The index of the output to get. |\n | ` `*error*` ` | The error, if any, during the operation, including `MachineLearningErrorDomainCode.InvalidArgument` when: - There is no model output with given index. \u003cbr /\u003e |\n\n #### Return Value\n\n The `index`-th output. Returns nil if there is an error."]]