예제 #1
0
def test_bind_add():
    def add(a, b):
        return a + b

    f = tvm_ext.bind_add(add, 1)
    assert f(2) == 3
예제 #2
0
파일: test_ext.py 프로젝트: LANHUIYING/tvm
def test_bind_add():
    def add(a, b):
        return a + b
    f = tvm_ext.bind_add(add, 1)
    assert f(2)  == 3