Skip to content

Commit

Permalink
Get tvmc version from tvm (apache#7478)
Browse files Browse the repository at this point in the history
Change-Id: I6a6e78080f36e4e3e1689e03ea48e759fcd8e466
  • Loading branch information
Nicola Lancellotti authored and masahi committed Feb 22, 2021
1 parent 36b411f commit 30eb7c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/tvm/driver/tvmc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import logging
import sys

import pkg_resources
import tvm

from tvm.driver.tvmc.common import TVMCException

Expand Down Expand Up @@ -75,8 +75,7 @@ def _main(argv):
logging.getLogger("TVMC").setLevel(40 - args.verbose * 10)

if args.version:
version = pkg_resources.get_distribution("tvm").version
sys.stdout.write("%s\n" % version)
sys.stdout.write("%s\n" % tvm.__version__)
return 0

if not hasattr(args, "func"):
Expand Down

0 comments on commit 30eb7c6

Please sign in to comment.