Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -88,7 +88,7 @@ def convert(self, prog: Expr):
body.append(Assign([Name(OUTPUT_VAR_NAME, Store())], prog_body))
global __MAJOR__, __MINOR__

if __MAJOR__ == 3 and __MINOR__ == 8:
if __MAJOR__ == 3 and __MINOR__ >= 8:
return ast.fix_missing_locations(ast.Module(body=body, type_ignores=[]))
else:
return ast.fix_missing_locations(ast.Module(body=body))
Expand Down Expand Up @@ -224,7 +224,7 @@ def create_def(self, func_name: str, arguments: [str], body):
inner_args = [ast.arg(argument, None) for argument in arguments]

global __MAJOR__, __MINOR__
if __MAJOR__ == 3 and __MINOR__ == 8:
if __MAJOR__ == 3 and __MINOR__ >= 8:
arguments = ast.arguments([], inner_args, None, [], [], None, [])
else:
arguments = ast.arguments(inner_args, None, [], [], None, [])
Expand Down