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
``paddle.where(condition)`` is identical to ``paddle.nonzero(condition, as_tuple=True)``.
573
+
``numpy.where(condition)`` is identical to ``paddle.nonzero(condition, as_tuple=True)``, please refer to :ref:`api_tensor_search_nonzero`.
574
574
575
575
Args:
576
-
condition (Tensor): The condition to choose x or y. When True(nonzero), yield x, otherwise yield y.
576
+
condition (Tensor): The condition to choose x or y. When True(nonzero), yield x, otherwise yield y.
577
577
x (Tensor|scalar, optional): A Tensor or scalar to choose when the condition is True with data type of float32, float64, int32 or int64. Either both or neither of x and y should be given.
578
578
y (Tensor|scalar, optional): A Tensor or scalar to choose when the condition is False with data type of float32, float64, int32 or int64. Either both or neither of x and y should be given.
579
579
name (str, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None.
0 commit comments