cross¶
-
paddle.fluid.layers.
cross
(input, other, dim=None)[source] 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.
- Parameters
input (Variable) – The first input tensor variable.
other (Variable) – The second input tensor variable.
dim (int) – The dimension to take the cross-product in.
- Returns
A Tensor with same data type as input.
- Return type
Variable
Examples