FirebaseModelInputOutputOptions.Builder

public static class FirebaseModelInputOutputOptions.Builder extends Object

Builder class to build FirebaseModelInputOutputOptions.

Public Constructor Summary

Public Method Summary

FirebaseModelInputOutputOptions
FirebaseModelInputOutputOptions.Builder
setInputFormat(int index, int dataType, int[] dims)
Sets type and dimensions for index-th input.
FirebaseModelInputOutputOptions.Builder
setOutputFormat(int index, int dataType, int[] dims)
Sets type and dimensions for index-th output.

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public FirebaseModelInputOutputOptions.Builder ()

Creates a builder to build FirebaseModelInputOutputOptions.

public FirebaseModelInputOutputOptions.Builder (FirebaseModelInputOutputOptions options)

Gets a builder from an existing FirebaseModelInputOutputOptions.

Parameters
options an instance of FirebaseModelInputOutputOptions.

Public Methods

public FirebaseModelInputOutputOptions.Builder setInputFormat (int index, int dataType, int[] dims)

Sets type and dimensions for index-th input.

Parameters
index index of the input data to set type and dimensions for.
dataType data type of the input data. It should be one of FirebaseModelDataType.
dims an int array for the dimensions of the input data.
Returns

public FirebaseModelInputOutputOptions.Builder setOutputFormat (int index, int dataType, int[] dims)

Sets type and dimensions for index-th output.

Parameters
index index of the output data to set type & dimensions for.
dataType data type of the output data. It should be one of FirebaseModelDataType.
dims an int array for the dimensions of the output data.
Returns

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Jul 25, 2024

Developer documentation for Firebase

Updated Feb 20, 2025

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 3, 2024