# tensorflow::ops::BatchMatMulV3

`#include <math_ops.h>`

Multiplies slices of two tensors in batches.

## Summary

Multiplies all slices of `https://www.tensorflow.org/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor``x` and `y` (each slice can be viewed as an element of a batch), and arranges the individual results in a single output tensor of the same batch size. Each of the individual slices can optionally be adjointed (to adjoint a matrix means to transpose and conjugate it) before multiplication by setting the `adj_x` or `adj_y` flag to `True`, which are by default `False`.

The input tensors `x` and `y` are 2-D or higher with shape `[..., r_x, c_x]` and `[..., r_y, c_y]`.

The output tensor is 2-D or higher with shape `[..., r_o, c_o]`, where:

```
r_o = c_x if adj_x else r_x
c_o = r_y if adj_y else c_y
```

<br />

It is computed as:

```
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
```

<br />

*NOTE*: `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3` supports broadcasting in the batch dimensions. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html).

Args:

- scope: A [Scope](https://www.tensorflow.org/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- x: 2-D or higher with shape `[..., r_x, c_x]`.
- y: 2-D or higher with shape `[..., r_y, c_y]`.
- Tout: If not spcified, Tout is the same type to input type.

<br />

Optional attributes (see `https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/batch-mat-mul-v3/attrs#structtensorflow_1_1ops_1_1_batch_mat_mul_v3_1_1_attrs`):

- adj_x: If `True`, adjoint the slices of `x`. Defaults to `False`.
- adj_y: If `True`, adjoint the slices of `y`. Defaults to `False`.

<br />

Returns:

- `https://www.tensorflow.org/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output`: 3-D or higher with shape `[..., r_o, c_o]`

<br />

| ### Constructors and Destructors ||
|---|---|
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a49499b3b5aafbb5a241b2ff33b4972cc(const ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input x, ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input y, DataType Tout)` ||
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1abbce65054facd4f2df8d88919f5e0cbf(const ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input x, ::https://www.tensorflow.org/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input y, DataType Tout, const https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/batch-mat-mul-v3/attrs#structtensorflow_1_1ops_1_1_batch_mat_mul_v3_1_1_attrs & attrs)` ||

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1af1c9e2fd37288bef39d7bcd2ec58f0f6` | `https://www.tensorflow.org/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation` |
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a82f8662bc55036682ee2c44233e375d0` | `::https://www.tensorflow.org/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a1d31166bd5c7e17dcf0ecde30ba4718d() const ` | `::tensorflow::Node *` |
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1adf982bd1c0de71c88ed80f6702890115() const ` |   |
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a30fe5139657cc765041c604060d5f678() const ` |   |

| ### Public static functions ||
|---|---|
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a6e09ce476eba83069ee8ec0f50a0ef29(bool x)` | `https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/batch-mat-mul-v3/attrs#structtensorflow_1_1ops_1_1_batch_mat_mul_v3_1_1_attrs` |
| `https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3_1a866cd9912df165ad1c49b557f516e8eb(bool x)` | `https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/batch-mat-mul-v3/attrs#structtensorflow_1_1ops_1_1_batch_mat_mul_v3_1_1_attrs` |

| ### Structs ||
|---|---|
| [tensorflow::ops::BatchMatMulV3::Attrs](https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/batch-mat-mul-v3/attrs) | Optional attribute setters for [BatchMatMulV3](https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/batch-mat-mul-v3#classtensorflow_1_1ops_1_1_batch_mat_mul_v3). |

## Public attributes

### operation

```
Operation operation
```

### output

```
::tensorflow::Output output
```

## Public functions

### BatchMatMulV3

```
 BatchMatMulV3(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y,
  DataType Tout
)
```

### BatchMatMulV3

```
 BatchMatMulV3(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y,
  DataType Tout,
  const BatchMatMulV3::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### AdjX

```
Attrs AdjX(
  bool x
)
```

### AdjY

```
Attrs AdjY(
  bool x
)
```