Skip to content

Commit

Permalink
Change name of run_test_comparator function in harness.py
Browse files Browse the repository at this point in the history
  • Loading branch information
apbose committed Apr 16, 2024
1 parent c76c2c3 commit c3c768c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/py/dynamo/conversion/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def run_test(
check_dtype,
)

def run_test_comparator(
def run_test_compare_tensor_attributes_only(
self,
mod,
inputs,
Expand Down
4 changes: 2 additions & 2 deletions tests/py/dynamo/conversion/test_rand_aten.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def forward(self, x):
x.dtype == y.dtype if check_dtype else True
)
expected_ops = []
self.run_test_comparator(
self.run_test_compare_tensor_attributes_only(
rand_model,
inputs,
expected_ops,
Expand Down Expand Up @@ -122,7 +122,7 @@ def forward(self, x):
)
expected_ops = []
# TRT-TRT returns int32 while torch returns int64
self.run_test_comparator(
self.run_test_compare_tensor_attributes_only(
rand_model,
inputs,
expected_ops,
Expand Down

0 comments on commit c3c768c

Please sign in to comment.