You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by le...@apache.org on 2022/07/01 16:06:56 UTC

[tvm] branch main updated: [tests] Fix changed var name from 'target_str' to 'target_names', NFC (#11982)

This is an automated email from the ASF dual-hosted git repository.

leandron pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 2f8b008730 [tests] Fix changed var name from 'target_str' to 'target_names', NFC (#11982)
2f8b008730 is described below

commit 2f8b008730e5fd97eccc14e58a5a259ae30bac38
Author: xndcn <xn...@gmail.com>
AuthorDate: Sat Jul 2 00:06:51 2022 +0800

    [tests] Fix changed var name from 'target_str' to 'target_names', NFC (#11982)
---
 python/tvm/testing/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/tvm/testing/utils.py b/python/tvm/testing/utils.py
index 054257e07a..d7c2adaa86 100644
--- a/python/tvm/testing/utils.py
+++ b/python/tvm/testing/utils.py
@@ -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