The first tensor
The second tensor
Optionalaxes1: number | number[]
Distinct 0-based axes of the first tensor, defaulting to its last axis
Optionalaxes2: number | number[] = ...
Distinct 0-based axes of the second tensor, paired with equal-length axes in axes1
Calculates the contraction between paired axes of two tensors. Remaining axes of the first tensor precede those of the second, while two empty axis lists give the outer product.