Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameLoad Return TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call Call NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A numpy chainer cuda chainer function chainer.utils type_check Where N/A N/A function Function N/A N/A Choose elements depending on condition. check_type_forward N/A N/A self in_types N/A N/A N/A N/A N/A type_check expect N/A N/A N/A in_types size 3 N/A N/A c_type x_type y_type in_types N/A N/A N/A type_check expect N/A N/A c_type dtype N/A numpy bool_ N/A N/A x_type dtype N/A y_type dtype N/A N/A x_type shape N/A c_type shape N/A N/A y_type shape N/A c_type shape N/A forward N/A N/A self inputs N/A N/A N/A xp N/A N/A cuda get_array_module inputs N/A N/A condition x y inputs N/A N/A N/A N/A xp where condition x y N/A backward N/A N/A self inputs grads N/A N/A N/A xp N/A N/A cuda get_array_module inputs N/A N/A condition x y inputs N/A gx N/A N/A xp where condition N/A grads N/A 0 0 N/A gy N/A N/A xp where condition 0 N/A grads N/A 0 N/A N/A None gx gy N/A N/A where N/A N/A condition x y N/A N/A N/A Choose elements depending on condition.

    This function choose values depending on a given ``condition``.
    All ``condition``, ``x``, and ``y`` must have the same shape.

    Args:
        condition (~chainer.Variable): Variable containing the condition.
            Only boolean array is permitted.
        x (~chainer.Variable): Variable chosen when ``condition`` is ``True``.
        y (~chainer.Variable): Variable chosen when ``condition`` is ``False``.

    Returns:
        ~chainer.Variable: Variable containing chosen values.
     N/A N/A N/A Where condition x y N/A