Google is committed to advancing racial equity for Black communities. See how.


public final class FirebaseModelOutputs extends Object

Stores inference results.

Public Method Summary

<T> T
getOutput(int index)
Gets index-th output.

Inherited Method Summary

Public Methods

public T getOutput (int index)

Gets index-th output.

Example: byte[][] probs = firebaseModelResult.getOutput(0);

IllegalArgumentException if the index does not exist.
ClassCastException if type argument 'T' does not match the corresponding data type and dimension specified in the model file.