def test_arg_of_sigmoid_bad():
    """
    Tests that arg_of_sigmoid raises an error when given a bad input.
    """

    X = T.matrix()
    Y = T.nnet.softmax(X)
    try:
        Z = arg_of_sigmoid(Y)
    except __HOLE__:
        return
    assert False # Should have failed
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/expr/tests/test_nnet.py/test_arg_of_sigmoid_bad