# tensorflow::ops::QuantizedMatMul Class Reference

# 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).


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_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 `
  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.

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs
`
):

- transpose_a: If true, `
  a
  ` is transposed before multiplication.
- transpose_b: If true, `
  b
  ` is transposed before multiplication.
- Tactivation: The type of output produced by activation function following this operation.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` out
- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` min_out: The float value that the lowest quantized output value represents.
- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` max_out: The float value that the highest quantized output value represents.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a0f09b0e35ddc6a6324c65db6ec69a731 (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input b, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input min_a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input max_a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input min_b, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input max_b) ` ||
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a882f02d4d46fa0c4ddb44a2e201929dc (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input b, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input min_a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input max_a, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input min_b, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input max_b, const https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ad70908bf74ce2c40aa1f778693c60d8f ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a8dfe353eb1695a006f27c2cd8210b728 ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ad9abd5818d18e9d7f03c3db5ef1464ff ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a891101c5425593a778947c2a3019d4a3 ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1adf046668cb84feff06bb62ac8dfe9cb9 (DataType x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ab91328f7f63e496fbf14e3f2a7ca46fe (DataType x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1afbe2add319dc39e1db4dc583f556def9 (bool x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a6525a94155917583356eb70dd02f1f72 (bool x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: QuantizedMatMul:: Attrs](https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs) | Optional attribute setters for [QuantizedMatMul](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul) . |

## 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
)
```