|View source on GitHub|
Layer that computes a dot product between samples in two tensors.
Compat aliases for migration
See Migration guide for more details.
tf.keras.layers.Dot( axes, normalize=False, **kwargs )
E.g. if applied to a list of two tensors
b of shape
(batch_size, n), the output will be a tensor of shape
(batch_size, 1) where each entry
i will be the dot product between
| ||Integer or tuple of integers, axis or axes along which to take the dot product.|
| ||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.|
| ||Standard layer keyword arguments.|
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.