You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: python/paddle/tensor/linalg.py
+22-4
Original file line number
Diff line number
Diff line change
@@ -1900,8 +1900,8 @@ def cross(x, y, axis=9, name=None):
1900
1900
If `axis` is not given, it defaults to the first axis found with the length 3.
1901
1901
1902
1902
Args:
1903
-
x (Tensor): The first input tensor, the data type is float16, float32, float64, int32, int64.
1904
-
y (Tensor): The second input tensor, the data type is float16, float32, float64, int32, int64.
1903
+
x (Tensor): The first input tensor, the data type is float16, float32, float64, int32, int64, complex64, complex128.
1904
+
y (Tensor): The second input tensor, the data type is float16, float32, float64, int32, int64, complex64, complex128.
1905
1905
axis (int, optional): The axis along which to compute the cross product. It defaults to be 9 which indicates using the first axis found with the length 3.
1906
1906
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
1907
1907
@@ -1941,13 +1941,31 @@ def cross(x, y, axis=9, name=None):
0 commit comments