tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/common/TensorProcessor.html
public class TensorProcessor
TensorProcessor is a helper class for preprocessing and postprocessing tensors. It could transform a TensorBuffer to another by executing a chain of TensorOperator.
Example Usage:
TensorProcessor processor = new TensorProcessor.Builder().add(new NormalizeOp(1, 2)).build();
TensorBuffer anotherTensorBuffer = processor.process(tensorBuffer);
to build a {@code TensorProcessor} instance.to apply the processor on a {@code TensorBuffer}. | class | TensorProcessor.Builder | The Builder to create an TensorProcessor, which could be executed later. |
From class org.tensorflow.lite.support.common.SequentialProcessor
| TensorBuffer | process(TensorBuffer x) |
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() |
From interface org.tensorflow.lite.support.common.Processor
| abstract TensorBuffer | process(TensorBuffer input) |