Skip to content

Commit

Permalink
[TIR] Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihengJiang committed Dec 15, 2020
1 parent d43abea commit 5208d32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/python/unittest/test_tir_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from tvm import tir
from tvm.ir.transform import PassContext


def test_scalar_add():
a = tir.Var("a", "float32")
b = tir.Var("b", "float32")
Expand All @@ -29,10 +30,11 @@ def test_scalar_add():
pass_ctx = PassContext.current()
if pass_ctx.config.get("tir.noalias", True):
func = func.with_attr("tir.noalias", True)
mod = tvm.IRModule({'main': func})
mod = tvm.IRModule({"main": func})
func = tvm.build(mod)
out = func(1.0, 2.0)
assert out == 3.0


if __name__ == "__main__":
test_scalar_add()

0 comments on commit 5208d32

Please sign in to comment.