tensorflow:: ops:: QuantizedMatMul
#include <math_ops.h>
Perform a quantized matrix multiplication of a by the matrix b.
Summary
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).
Arguments:
- scope: A Scope object
- a: Must be a two-dimensional tensor.
- b: Must be a two-dimensional tensor.
- min_a: The float value that the lowest quantized
avalue represents. - max_a: The float value that the highest quantized
avalue represents. - min_b: The float value that the lowest quantized
bvalue represents. - max_b: The float value that the highest quantized
bvalue represents.
Optional attributes (see Attrs):
- transpose_a: If true,
ais transposed before multiplication. - transpose_b: If true,
bis transposed before multiplication. - Tactivation: The type of output produced by activation function following this operation.
Returns:
OutputoutOutputmin_out: The float value that the lowest quantized output value represents.Outputmax_out: The float value that the highest quantized output value represents.
Constructors and Destructors |
|
|---|---|
QuantizedMatMul(const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b)
|
|
QuantizedMatMul(const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs)
|
Public attributes |
|
|---|---|
max_out
|
|
min_out
|
|
operation
|
|
out
|
|
Public static functions |
|
|---|---|
Tactivation(DataType x)
|
|
Toutput(DataType x)
|
|
TransposeA(bool x)
|
|
TransposeB(bool x)
|
|
Structs |
|
|---|---|
|
tensorflow:: |
Optional attribute setters for QuantizedMatMul. |
Public attributes
max_out
::tensorflow::Output max_out
min_out
::tensorflow::Output min_out
operation
Operation operation
out
::tensorflow::Output out
Public functions
QuantizedMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b )
QuantizedMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs )
Public static functions
Tactivation
Attrs Tactivation( DataType x )
Toutput
Attrs Toutput( DataType x )
TransposeA
Attrs TransposeA( bool x )
TransposeB
Attrs TransposeB( bool x )