@Namespace(value="tensorflow::ops::internal") @NoOffset @Properties(inherit=tensorflow.class) public class QuantizedMatMulWithBias extends Pointer
a
by the matrix b
with bias
add.
The inputs must be two-dimensional matrices and 1D bias vector. 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). Then do broadcast add operation with bias values on the matrix
mulplication result. The bias size must match inner dimension of b
.
Arguments:
* scope: A Scope object
* a: A matrix to be multiplied. Must be a two-dimensional tensor of type quint8
.
* b: A matrix to be multiplied and must be a two-dimensional tensor of type qint8
.
* bias: A 1D bias tensor with size matching inner dimension of b
(after being
transposed if transposed_b
is non-zero).
* min_a: The float value that the lowest quantized a
value represents.
* max_a: The float value that the highest quantized a
value represents.
* min_b: The float value that the lowest quantized b
value represents.
* max_b: The float value that the highest quantized b
value represents.
Optional attributes (see Attrs
):
* transpose_a: If true, a
is transposed before multiplication.
* transpose_b: If true, b
is transposed before multiplication.
* input_quant_mode: Input data quantization mode. Either MIN_FIRST(default) or SCALED.
Returns:
* Output
out
* Output
min_out: The float value that the lowest quantized output value represents.
* Output
max_out: The float value that the highest quantized output value represents.Modifier and Type | Class and Description |
---|---|
static class |
QuantizedMatMulWithBias.Attrs
Optional attribute setters for QuantizedMatMulWithBias
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
QuantizedMatMulWithBias(Pointer p)
Pointer cast constructor.
|
QuantizedMatMulWithBias(Scope scope,
Input a,
Input b,
Input bias,
Input min_a,
Input max_a,
Input min_b,
Input max_b) |
QuantizedMatMulWithBias(Scope scope,
Input a,
Input b,
Input bias,
Input min_a,
Input max_a,
Input min_b,
Input max_b,
QuantizedMatMulWithBias.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static QuantizedMatMulWithBias.Attrs |
InputQuantMode(BytePointer x) |
static QuantizedMatMulWithBias.Attrs |
InputQuantMode(String x) |
Output |
max_out() |
QuantizedMatMulWithBias |
max_out(Output setter) |
Output |
min_out() |
QuantizedMatMulWithBias |
min_out(Output setter) |
Operation |
operation() |
QuantizedMatMulWithBias |
operation(Operation setter) |
Output |
out() |
QuantizedMatMulWithBias |
out(Output setter) |
static QuantizedMatMulWithBias.Attrs |
Toutput(int x) |
static QuantizedMatMulWithBias.Attrs |
TransposeA(boolean x) |
static QuantizedMatMulWithBias.Attrs |
TransposeB(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public QuantizedMatMulWithBias(Pointer p)
Pointer(Pointer)
.public QuantizedMatMulWithBias(@Const @ByRef Scope scope, @ByVal Input a, @ByVal Input b, @ByVal Input bias, @ByVal Input min_a, @ByVal Input max_a, @ByVal Input min_b, @ByVal Input max_b)
@ByVal public static QuantizedMatMulWithBias.Attrs Toutput(@Cast(value="tensorflow::DataType") int x)
@ByVal public static QuantizedMatMulWithBias.Attrs TransposeA(@Cast(value="bool") boolean x)
@ByVal public static QuantizedMatMulWithBias.Attrs TransposeB(@Cast(value="bool") boolean x)
@ByVal public static QuantizedMatMulWithBias.Attrs InputQuantMode(@tensorflow.StringPiece BytePointer x)
@ByVal public static QuantizedMatMulWithBias.Attrs InputQuantMode(@tensorflow.StringPiece String x)
public QuantizedMatMulWithBias operation(Operation setter)
public QuantizedMatMulWithBias out(Output setter)
public QuantizedMatMulWithBias min_out(Output setter)
public QuantizedMatMulWithBias max_out(Output setter)
Copyright © 2022. All rights reserved.