cross(input, other, dim=None)
Returns the cross product of vectors in dimension dim of the input and other tensor. Inputs must have the same shape, and the size of their dim-th dimension should be equla to 3. If dim is not given, it defaults to the first dimension found with the size 3.
input (Variable) – The first input tensor variable.
other (Variable) – The second input tensor variable.
dim (int) – The dimension to take the cross-product in.
A Tensor with same data type as input.
- Return type