chainerx.where¶
-
chainerx.
where
(condition, x, y)¶ Return elements chosen from
x
ory
depending on condition.- Parameters
- Returns
An array with elements from
x
where condition is True, and elements fromy
elsewhere.- Return type
Note
During backpropagation, this function propagates the gradient of the output array to the input array
x
andy
.See also