Layer that computes a dot product between samples in two tensors.
E.g., if applied to a list of two tensors a and b both of shape
[batchSize, n], the output will be a tensor of shape [batchSize, 1],
where each entry at index [i, 0] will be the dot product between
a[i, :] and b[i, :].
Layer that computes a dot product between samples in two tensors.
E.g., if applied to a list of two tensors
aandbboth of shape[batchSize, n], the output will be a tensor of shape[batchSize, 1], where each entry at index[i, 0]will be the dot product betweena[i, :]andb[i, :].Example: