QuantizedMatMul

public final class QuantizedMatMul

Perform a quantized matrix multiplication of `a` by the matrix `b`.

The inputs must be two-dimensional matrices and the inner dimension of `a` (after being transposed if `transpose_a` is non-zero) must match the outer dimension of `b` (after being transposed if `transposed_b` is non-zero).

Nested Classes

class QuantizedMatMul.Options Optional attributes for QuantizedMatMul  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <V extends TType, W extends TType> QuantizedMatMul<V>
create(Scope scope, Operand<? extends TType> a, Operand<? extends TType> b, Operand<TFloat32> minA, Operand<TFloat32> maxA, Operand<TFloat32> minB, Operand<TFloat32> maxB, Class<V> Toutput, Class<W> Tactivation, Options... options)
Factory method to create a class wrapping a new QuantizedMatMul operation.
Output<TFloat32>
maxOut()
The float value that the highest quantized output value represents.
Output<TFloat32>
minOut()
The float value that the lowest quantized output value represents.
Output<V>
out()
static QuantizedMatMul.Options
transposeA(Boolean transposeA)
static QuantizedMatMul.Options
transposeB(Boolean transposeB)

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
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()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "QuantizedMatMul"

Public Methods

public static QuantizedMatMul<V> create (Scope scope, Operand<? extends TType> a, Operand<? extends TType> b, Operand<TFloat32> minA, Operand<TFloat32> maxA, Operand<TFloat32> minB, Operand<TFloat32> maxB, Class<V> Toutput, Class<W> Tactivation, Options... options)

Factory method to create a class wrapping a new QuantizedMatMul operation.

Parameters
scope current scope
a Must be a two-dimensional tensor.
b Must be a two-dimensional tensor.
minA The float value that the lowest quantized `a` value represents.
maxA The float value that the highest quantized `a` value represents.
minB The float value that the lowest quantized `b` value represents.
maxB The float value that the highest quantized `b` value represents.
Tactivation The type of output produced by activation function following this operation.
options carries optional attributes values
Returns
  • a new instance of QuantizedMatMul

public Output<TFloat32> maxOut ()

The float value that the highest quantized output value represents.

public Output<TFloat32> minOut ()

The float value that the lowest quantized output value represents.

public Output<V> out ()

public static QuantizedMatMul.Options transposeA (Boolean transposeA)

Parameters
transposeA If true, `a` is transposed before multiplication.

public static QuantizedMatMul.Options transposeB (Boolean transposeB)

Parameters
transposeB If true, `b` is transposed before multiplication.