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