Skip to content

Commit

Permalink
Fix minor issues in the tvmc tune CLI (apache#8039)
Browse files Browse the repository at this point in the history
* [TVMC] convert timeout flag to int

fixes Check failed: type_code_ == kDLInt (11 vs. 0) : expected int but got str
when setting the timeout option using the cli flag.

* [TVMC] fix typo in tvmc tune help
  • Loading branch information
nodeav authored and trevor-m committed Jun 17, 2021
1 parent bf5077d commit fb37cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/driver/tvmc/autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def add_tune_parser(subparsers):
help="the host compilation target, defaults to 'llvm'",
default="llvm",
)
parser.add_argument("--timeout", default=10, help="compilation timeout, in seconds")
parser.add_argument("--timeout", type=int, default=10, help="compilation timeout, in seconds")
parser.add_argument(
"--trials",
type=int,
Expand All @@ -142,7 +142,7 @@ def add_tune_parser(subparsers):

auto_scheduler_group = parser.add_argument_group(
"Autoscheduler options",
"Autoscheduler options, used when --enabled-auto-scheduler is provided",
"Autoscheduler options, used when --enable-autoscheduler is provided",
)

auto_scheduler_group.add_argument(
Expand Down

0 comments on commit fb37cae

Please sign in to comment.