def test_all_costs():
 cases = [[SigmoidConvNonlinearity(), Sigmoid, True], [IdentityConvNonlinearity(), Linear, True], [TanhConvNonlinearity(), Tanh, False], [RectifierConvNonlinearity(), RectifiedLinear, False]]
 for (conv_nonlinearity, mlp_nonlinearity, cost_implemented) in cases:
  check_case(conv_nonlinearity, mlp_nonlinearity, cost_implemented)

def test_all_costs ( ) : cases = [ [ SigmoidConvNonlinearity ( ) , Sigmoid , True ] , [ IdentityConvNonlinearity ( ) , Linear , True ] , [ TanhConvNonlinearity ( ) , Tanh , False ] , [ RectifierConvNonlinearity ( ) , RectifiedLinear , False ] ] for ( conv_nonlinearity , mlp_nonlinearity , cost_implemented ) in cases : check_case ( conv_nonlinearity , mlp_nonlinearity , cost_implemented )
check all instances of convnonlinearity .