Packagecom.tuarua.firebase.ml.custom
Classpublic class ModelInputOutputOptions
InheritanceModelInputOutputOptions Inheritance Object

Options for a custom model specifying input and output data types and dimensions.



Public Properties
 PropertyDefined By
  inputDimensions : Array
[read-only] The array of dimensions for the input at a given index.
ModelInputOutputOptions
  inputIndex : uint
[read-only] The index of the input to configure.
ModelInputOutputOptions
  inputType : uint
[read-only] The element type for the input at a given index.
ModelInputOutputOptions
  outputDimensions : Array
[read-only] The array of dimensions for the output at a given index.
ModelInputOutputOptions
  outputIndex : uint
[read-only] The index of the output to configure.
ModelInputOutputOptions
  outputType : uint
[read-only] The element type for the output at a given index.
ModelInputOutputOptions
Public Methods
 MethodDefined By
  
ModelInputOutputOptions
  
setInputFormat(index:uint, type:uint, dimensions:Array):void
Sets the type and dimensions for the input at a given index.
ModelInputOutputOptions
  
setOutputFormat(index:uint, type:uint, dimensions:Array):void
Sets the type and dimensions for the output at a given index.
ModelInputOutputOptions
Property Detail
inputDimensionsproperty
inputDimensions:Array  [read-only]

The array of dimensions for the input at a given index.


Implementation
    public function get inputDimensions():Array
inputIndexproperty 
inputIndex:uint  [read-only]

The index of the input to configure.


Implementation
    public function get inputIndex():uint
inputTypeproperty 
inputType:uint  [read-only]

The element type for the input at a given index.


Implementation
    public function get inputType():uint
outputDimensionsproperty 
outputDimensions:Array  [read-only]

The array of dimensions for the output at a given index.


Implementation
    public function get outputDimensions():Array
outputIndexproperty 
outputIndex:uint  [read-only]

The index of the output to configure.


Implementation
    public function get outputIndex():uint
outputTypeproperty 
outputType:uint  [read-only]

The element type for the output at a given index.


Implementation
    public function get outputType():uint
Constructor Detail
ModelInputOutputOptions()Constructor
public function ModelInputOutputOptions()



Method Detail
setInputFormat()method
public function setInputFormat(index:uint, type:uint, dimensions:Array):void

Sets the type and dimensions for the input at a given index.

Parameters

index:uint — The index of the input to configure.
 
type:uint — The element type for the input at a given index.
 
dimensions:Array — The array of dimensions for the input at a given index. Each dimension should have an uint value. For example, for a 2 dimensional input with 4 rows and 9 columns, the corresponding dimensions should be provided as an Array containing two Numbers with unsigned integer values, 4 and 9 respectively.

setOutputFormat()method 
public function setOutputFormat(index:uint, type:uint, dimensions:Array):void

Sets the type and dimensions for the output at a given index.

Parameters

index:uint — The index of the output to configure.
 
type:uint — The element type for the output at a given index.
 
dimensions:Array — The array of dimensions for the output at a given index. Each dimension should have an uint value. For example, for a 2 dimensional output with 4 rows and 9 columns, the corresponding dimensions should be provided as an Array containing two Numbers with unsigned integer values, 4 and 9 respectively.