def test_not(op_tester):
    d1 = (np.random.randn(2) > 0).astype(np.bool_)
    print(d1)

    def init_builder(builder):
        i1 = builder.addInputTensor(d1)
        o = builder.aiOnnx.logical_not([i1])
        builder.addOutputTensor(o)
        return [o]

    def reference(ref_data):
        return [np.logical_not(d1)]
    op_tester.run(init_builder, reference, step_type='infer')
def test_not(op_tester):
    d1 = (np.random.randn(2) > 0).astype(np.bool_)
    print(d1)

    def init_builder(builder):
        i1 = builder.addInputTensor(d1)
        o = builder.aiOnnx.logical_not([i1])
        builder.addOutputTensor(o)
        return [o]

    def reference(ref_data):
        return [np.logical_not(d1)]
    op_tester.run(init_builder, reference, step_type='infer')