chainer.functions.
where
Choose elements depending on condition.
This function choose values depending on a given condition. All condition, x, and y must have the same shape.
condition
x
y
True
False
Variable containing chosen values.
Variable