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

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