Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions python/tvm/script/parser/core/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ def to_doc_func(x: ast.AST) -> doc.Constant:
return doc.Constant(
value=getattr(x, f) if isinstance(f, str) else f(x),
kind=None,
s=None,
n=None,
lineno=x.lineno,
col_offset=x.col_offset,
end_lineno=x.lineno,
Expand Down
6 changes: 2 additions & 4 deletions python/tvm/script/parser/core/doc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,12 @@ def __init__(self, values, lineno, col_offset, end_lineno, end_col_offset):


class Constant(expr):
_FIELDS = ["value", "kind", "s", "n", "lineno", "col_offset", "end_lineno", "end_col_offset"]
_FIELDS = ["value", "kind", "lineno", "col_offset", "end_lineno", "end_col_offset"]

def __init__(self, value, kind, s, n, lineno, col_offset, end_lineno, end_col_offset):
def __init__(self, value, kind, lineno, col_offset, end_lineno, end_col_offset):
super().__init__(lineno, col_offset, end_lineno, end_col_offset)
self.value = value
self.kind = kind
self.s = s
self.n = n


class NamedExpr(expr):
Expand Down
2 changes: 0 additions & 2 deletions python/tvm/script/parser/core/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ def _visit(self, node: doc.AST) -> Any:
s.step = doc.Constant(
1,
None,
1,
1,
s.upper.lineno,
s.upper.end_col_offset + 1,
s.upper.lineno,
Expand Down
2 changes: 0 additions & 2 deletions python/tvm/script/parser/tir/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ def visit_assign(self: Parser, node: doc.Assign) -> None:
s.step = doc.Constant(
1,
None,
1,
1,
s.upper.lineno,
s.upper.end_col_offset + 1,
s.upper.lineno,
Expand Down
Loading