Skip to content

Commit

Permalink
Add test_forward_index_put to __main__ (apache#7542)
Browse files Browse the repository at this point in the history
  • Loading branch information
apivovarov authored and Lokiiiiii committed Mar 2, 2021
1 parent 497d5e5 commit 35b9a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tvm/auto_scheduler/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def unpack_feature(byte_arr: bytearray) -> Tuple[np.ndarray, np.ndarray, np.ndar
tmp_vec_len = (size - 1) // n_stmts
assert (
tmp_vec_len == vec_len
), "The lenght of feature vector is wrong. " "Expected %d but got %d." % (
), "The length of feature vector is wrong. Expected %d but got %d." % (
vec_len,
tmp_vec_len,
)
Expand Down
5 changes: 3 additions & 2 deletions tests/python/frontend/pytorch/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ def _impl(inputs, input_types):


@tvm.testing.uses_gpu
def test_segmentaton_models():
def test_segmentation_models():
class SegmentationModelWrapper(Module):
def __init__(self, model):
super().__init__()
Expand Down Expand Up @@ -3811,6 +3811,7 @@ def test_fn(is_sorted, return_inverse, return_counts):
test_forward_unbind()
test_forward_nonzero()
test_forward_scatter()
test_forward_index_put()
test_numel()
test_bincount()
test_cumsum()
Expand All @@ -3836,7 +3837,7 @@ def test_fn(is_sorted, return_inverse, return_counts):

test_custom_conversion_map()

test_segmentaton_models()
test_segmentation_models()
test_3d_models()

# Quantization test
Expand Down

0 comments on commit 35b9a43

Please sign in to comment.