Skip to content

Commit

Permalink
replace dynamic cumsum test with dynamic argsort for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Masuda committed Mar 9, 2021
1 parent d7f983c commit c3b8c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/unittest/test_target_codegen_spirv.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def check_mod(mod, x_np, res_np):
dtype = "int32"
x = relay.var("x", shape=(relay.Any(),), dtype=dtype)
mod = tvm.IRModule()
mod["main"] = relay.Function([x], relay.cumsum(x))
mod["main"] = relay.Function([x], relay.argsort(x))
x_np = np.random.randint(0, high=10, size=(10,)).astype(dtype)
res_np = np.cumsum(x_np)
res_np = np.argsort(x_np)

check_mod(mod, x_np, res_np)

Expand Down

0 comments on commit c3b8c96

Please sign in to comment.