Skip to content

Commit

Permalink
[Fix] Fix get_valid_count flaky test for cuda (apache#4901)
Browse files Browse the repository at this point in the history
* get_valid_count accuracy issue fixed for individual tests but not for all tests running together

* minor fix

* initialize valid_count and PrefixSum buffers

* test updated

* udpate relay test as well

* update document

* fix lint

* address comment

* fix lint

* correct atomicAdd identifier name
  • Loading branch information
Laurawly authored and alexwong committed Feb 26, 2020
1 parent ed94039 commit aa3fbdd
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 255 deletions.
2 changes: 0 additions & 2 deletions tests/python/relay/test_op_level5.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ def verify_get_valid_counts(dshape, score_threshold, id_index, score_index):
func = relay.Function([x], z.astuple())
func = run_infer_type(func)
for target, ctx in ctx_list():
if target == 'cuda':
return
intrp = relay.create_executor("debug", ctx=ctx, target=target)
out = intrp.evaluate(func)(np_data)
tvm.testing.assert_allclose(out[0].asnumpy(), np_out1, rtol=1e-3, atol=1e-04)
Expand Down
Loading

0 comments on commit aa3fbdd

Please sign in to comment.