Skip to content

Commit

Permalink
add a shape function and dynamic test for round (apache#7324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brookhart authored and electriclilies committed Feb 18, 2021
1 parent f2fe840 commit c11aa3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/op/_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def elemwise_shape_func(attrs, inputs, _):

register_shape_func("cast", False, elemwise_shape_func)
register_shape_func("cast_like", False, elemwise_shape_func)
register_shape_func("round", False, elemwise_shape_func)
register_shape_func("zeros", False, no_data_full_shape_func)
register_shape_func("zeros_like", False, elemwise_shape_func)
register_shape_func("ones", False, no_data_full_shape_func)
Expand Down
1 change: 1 addition & 0 deletions tests/python/relay/test_any.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def test_any_elemwise():
verify_any_elemwise((relay.Any(),), (3,), relay.sqrt, np.sqrt)
verify_any_elemwise((relay.Any(), 2), (5, 2), relay.negative, np.negative)
verify_any_elemwise((relay.Any(), relay.Any()), (5, 4), relay.exp, np.exp)
verify_any_elemwise((relay.Any(),), (3,), relay.round, np.round)


@tvm.testing.uses_gpu
Expand Down

0 comments on commit c11aa3a

Please sign in to comment.