Skip to content

Commit

Permalink
[std::string --> String][Test] Pyconverter is updated with String change
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHUMAN TRIPATHY authored and ANSHUMAN TRIPATHY committed May 9, 2020
1 parent 5759ac4 commit 7bca1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/testing/py_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def convert_func_node(self, func: Function, name_var=None):
if name_var is None:
func_name = self.generate_function_name('_anon_func')
if isinstance(name_var, GlobalVar):
func_name = name_var.name_hint
func_name = str(name_var.name_hint)
if isinstance(name_var, Var):
func_name = self.get_var_name(name_var)

Expand Down Expand Up @@ -411,7 +411,7 @@ def visit_var(self, var: Expr):
def visit_global_var(self, gvar: Expr):
# we don't need to add numbers to global var names because
# the *names* are checked for uniqueness in the mod
return (Name(gvar.name_hint, Load()), [])
return (Name(str(gvar.name_hint), Load()), [])


def visit_let(self, letexp: Expr):
Expand Down

0 comments on commit 7bca1d8

Please sign in to comment.