Skip to content

Commit

Permalink
[tests] Fix changed var name from 'target_str' to 'target_names', NFC (
Browse files Browse the repository at this point in the history
  • Loading branch information
xndcn authored Jul 1, 2022
1 parent 9e14509 commit 2f8b008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,14 @@ def _get_targets(target_names=None):
logging.warning(
"None of the following targets are supported by this build of TVM: %s."
" Try setting TVM_TEST_TARGETS to a supported target. Defaulting to llvm.",
target_str,
target_names,
)
return _get_targets(["llvm"])

raise TVMError(
"None of the following targets are supported by this build of TVM: %s."
" Try setting TVM_TEST_TARGETS to a supported target."
" Cannot default to llvm, as it is not enabled." % target_str
" Cannot default to llvm, as it is not enabled." % target_names
)

return targets
Expand Down

0 comments on commit 2f8b008

Please sign in to comment.