The dot product is worked out by multiplying and summing across a single index in both tensors .
The dot product is calculated by multiplying and summing across a single index in both tensors .