Back to Tensorflow

Operator

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/common/Operator.html

2.21.03.4 KB
Original Source

public interface Operator

| Known Indirect Subclasses

CastOp, DequantizeOp, ImageOperator, NormalizeOp, QuantizeOp, ResizeOp, ResizeWithCropOrPadOp, Rot90Op, TensorOperator, TensorOperatorWrapper, TransformToGrayscaleOp

| CastOp | Casts a TensorBuffer to a specified data type. | | DequantizeOp | Dequantizes a TensorBuffer with given zeroPoint and scale. | | ImageOperator | Operates a TensorImage object. | | NormalizeOp | Normalizes a TensorBuffer with given mean and stddev: output = (input - mean) / stddev. | | QuantizeOp | Quantizes a TensorBuffer with given zeroPoint and scale. | | ResizeOp | As a computation unit for processing images, it can resize an image to user-specified size. | | ResizeWithCropOrPadOp | As a computation unit for processing images, it could resize image to predefined size. | | Rot90Op | Rotates image counter-clockwise. | | TensorOperator | Applies some operation on TensorBuffers. | | TensorOperatorWrapper | The adapter that makes a TensorOperator able to run with TensorImage. | | TransformToGrayscaleOp | Transforms an image to GrayScale as an image processing unit. |

|

The common interface for classes that carries an "apply" method, which converts T to another one.

Public Methods

| abstract T | apply(T x) Applies an operation on a T object, returning a T object.

|

Public Methods

public abstract T apply (T x)

Applies an operation on a T object, returning a T object.

Note: The returned object could probably be the same one with given input, and given input could probably be changed.

Parameters

| x | |