# tf.keras.layers.dot

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/keras/layers/dot) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/keras/layers/merge.py#L708-L725) |

Functional interface to the `Dot` layer.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.layers.dot`](https://www.tensorflow.org/api_docs/python/tf/keras/layers/dot), \`tf.compat.v2.keras.layers.dot\`

<br />

    tf.keras.layers.dot(
        inputs, axes, normalize=False, **kwargs
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `inputs` | A list of input tensors (at least 2). |
| `axes` | Integer or tuple of integers, axis or axes along which to take the dot product. |
| `normalize` | Whether to L2-normalize samples along the dot product axis before taking the dot product. If set to True, then the output of the dot product is the cosine proximity between the two samples. |
| `**kwargs` | Standard layer keyword arguments. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor, the dot product of the samples from the inputs. ||

<br />