diff --git a/python/paddle/tensor/search.py b/python/paddle/tensor/search.py index ecf70ffe4a1dd3179d02a2a6ca1e260e8193d1d1..0ba47d79050ce2bc9ba4842681825f47f059c5df 100644 --- a/python/paddle/tensor/search.py +++ b/python/paddle/tensor/search.py @@ -542,7 +542,7 @@ def where(condition, x=None, y=None, name=None): Args: - condition(Tensor): The condition to choose x or y. + condition(Tensor): The condition to choose x or y. When True(nonzero), yield x, otherwise yield y. x(Tensor or Scalar, optional): x is a Tensor or Scalar with data type float32, float64, int32, int64. Either both or neither of x and y should be given. y(Tensor or Scalar, optional): y is a Tensor or Scalar with data type float32, float64, int32, int64. Either both or neither of x and y should be given.