diff --git a/python/tvm/relay/grammar/py3/RelayLexer.py b/python/tvm/relay/grammar/py3/RelayLexer.py index 2a2a7d45043d..76e988b45418 100644 --- a/python/tvm/relay/grammar/py3/RelayLexer.py +++ b/python/tvm/relay/grammar/py3/RelayLexer.py @@ -1,10 +1,11 @@ -# Generated from /home/lweber/micro/tvm-micro/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 +# Generated from /Users/doobs/Code/repo/sampl/tvm/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 from antlr4 import * from io import StringIO from typing.io import TextIO import sys + def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\62") diff --git a/python/tvm/relay/grammar/py3/RelayParser.py b/python/tvm/relay/grammar/py3/RelayParser.py index 55f3413bef8f..f24eed4be92f 100644 --- a/python/tvm/relay/grammar/py3/RelayParser.py +++ b/python/tvm/relay/grammar/py3/RelayParser.py @@ -1,10 +1,11 @@ -# Generated from /home/lweber/micro/tvm-micro/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 +# Generated from /Users/doobs/Code/repo/sampl/tvm/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 # encoding: utf-8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys + def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\62") @@ -392,6 +393,7 @@ def __init__(self, input:TokenStream, output:TextIO = sys.stdout): + class ProgContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -479,6 +481,7 @@ def prog(self): self.exitRule() return localctx + class GeneralIdentContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -532,6 +535,7 @@ def generalIdent(self): self.exitRule() return localctx + class GlobalVarContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -571,6 +575,7 @@ def globalVar(self): self.exitRule() return localctx + class LocalVarContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -616,6 +621,7 @@ def localVar(self): self.exitRule() return localctx + class GraphVarContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -655,6 +661,7 @@ def graphVar(self): self.exitRule() return localctx + class ExprListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -715,6 +722,7 @@ def exprList(self): self.exitRule() return localctx + class CallListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -816,6 +824,7 @@ def callList(self): self.exitRule() return localctx + class ExprContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1539,6 +1548,7 @@ def expr(self, _p:int=0): self.unrollRecursionContexts(_parentctx) return localctx + class FuncContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1616,6 +1626,7 @@ def func(self): self.exitRule() return localctx + class DefnContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1805,6 +1816,7 @@ def defn(self): self.exitRule() return localctx + class ConstructorNameContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1842,6 +1854,7 @@ def constructorName(self): self.exitRule() return localctx + class AdtConsDefnListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1905,6 +1918,7 @@ def adtConsDefnList(self): self.exitRule() return localctx + class AdtConsDefnContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -1975,6 +1989,7 @@ def adtConsDefn(self): self.exitRule() return localctx + class MatchClauseListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2038,6 +2053,7 @@ def matchClauseList(self): self.exitRule() return localctx + class MatchClauseContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2100,6 +2116,7 @@ def matchClause(self): self.exitRule() return localctx + class MatchTypeContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2141,6 +2158,7 @@ def matchType(self): self.exitRule() return localctx + class PatternListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2199,6 +2217,7 @@ def patternList(self): self.exitRule() return localctx + class PatternContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2349,6 +2368,7 @@ def pattern(self): self.exitRule() return localctx + class AdtConsContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2400,6 +2420,7 @@ def adtCons(self): self.exitRule() return localctx + class AdtConsParamListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2458,6 +2479,7 @@ def adtConsParamList(self): self.exitRule() return localctx + class AdtConsParamContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2513,6 +2535,7 @@ def adtConsParam(self): self.exitRule() return localctx + class ArgListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2614,6 +2637,7 @@ def argList(self): self.exitRule() return localctx + class VarListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2674,6 +2698,7 @@ def varList(self): self.exitRule() return localctx + class VarContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2727,6 +2752,7 @@ def var(self): self.exitRule() return localctx + class AttrSeqContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2781,6 +2807,7 @@ def attrSeq(self): self.exitRule() return localctx + class AttrContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -2826,6 +2853,7 @@ def attr(self): self.exitRule() return localctx + class TypeExprContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3133,6 +3161,7 @@ def typeExpr(self): self.exitRule() return localctx + class TypeParamListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3191,6 +3220,7 @@ def typeParamList(self): self.exitRule() return localctx + class ShapeListContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3272,6 +3302,7 @@ def shapeList(self): self.exitRule() return localctx + class MetaContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3324,6 +3355,7 @@ def meta(self): self.exitRule() return localctx + class ShapeContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3432,6 +3464,7 @@ def shape(self): self.exitRule() return localctx + class BodyContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3474,6 +3507,7 @@ def body(self): self.exitRule() return localctx + class ScalarContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): @@ -3576,6 +3610,7 @@ def scalar(self): self.exitRule() return localctx + class IdentContext(ParserRuleContext): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): diff --git a/python/tvm/relay/grammar/py3/RelayVisitor.py b/python/tvm/relay/grammar/py3/RelayVisitor.py index ec3cdd8cfc12..c6a7b7a0558c 100644 --- a/python/tvm/relay/grammar/py3/RelayVisitor.py +++ b/python/tvm/relay/grammar/py3/RelayVisitor.py @@ -1,4 +1,4 @@ -# Generated from /home/lweber/micro/tvm-micro/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 +# Generated from /Users/doobs/Code/repo/sampl/tvm/python/tvm/relay/grammar/Relay.g4 by ANTLR 4.7.2 from antlr4 import * if __name__ is not None and "." in __name__: from .RelayParser import RelayParser