Skip to content

Commit

Permalink
[Draft] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jcf94 committed Nov 4, 2020
1 parent c4c95c4 commit 56b6e39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/python/unittest/test_auto_scheduler_layout_rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def test_correctness_layout_rewrite_insert_transform_stage():
np_args = [np.random.randn(*topi.get_const_tuple(x.shape)).astype(x.dtype) for x in bufs]

func = tvm.build(s, bufs, target=target)
print(func.get_source())
func_ref = tvm.build(s_ref, bufs_ref, target=target)
print(func_ref.get_source())

ctx = tvm.context(str(target))
ctx_ref = tvm.cpu()
Expand Down Expand Up @@ -197,4 +199,4 @@ def ffff():
# test_apply_steps_with_layout_rewrite()
test_correctness_layout_rewrite_rewrite_for_preTransformed()
test_correctness_layout_rewrite_insert_transform_stage()
ffff()
# ffff()

0 comments on commit 56b6e39

Please sign in to comment.