Back to Tensorflow

TensorProcessor.Builder

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.Builder.html

2.21.02.9 KB
Original Source

public static class TensorProcessor.Builder

The Builder to create an TensorProcessor, which could be executed later.

Public Constructors

| | Builder() Creates a Builder to build TensorProcessor.

|

Public Methods

| Builder<TensorBuffer> | add(Operator<T> op) | | TensorProcessor.Builder | add(TensorOperator op) Adds an TensorOperator into the Operator chain.

| | TensorProcessor | build() Completes the building process and gets the TensorProcessor instance.

|

Inherited Methods

From class java.lang.Object

| boolean | equals(Object arg0) | | 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 Builder ()

Creates a Builder to build TensorProcessor.

See Also
  • to add an Op.
  • to complete the building process and get a built Processor.

Public Methods

public Builder<TensorBuffer> add (Operator<T> op)

Parameters

| op | |

public TensorProcessor.Builder add (TensorOperator op)

Adds an TensorOperator into the Operator chain.

Parameters

| op | the Operator instance to be executed then. |

public TensorProcessor build ()

Completes the building process and gets the TensorProcessor instance.