@@ -32,7 +32,6 @@ class PrinterConfig(Object):
3232 show_meta : bool
3333 ir_prefix : str
3434 tir_prefix : str
35- relax_prefix : str
3635 buffer_dtype : str
3736 int_dtype : str
3837 float_dtype : str
@@ -53,7 +52,6 @@ def __init__(
5352 show_meta : bool = False ,
5453 ir_prefix : str = "I" ,
5554 tir_prefix : str = "T" ,
56- relax_prefix : str = "R" ,
5755 buffer_dtype : str = "float32" ,
5856 int_dtype : str = "int32" ,
5957 float_dtype : str = "void" ,
@@ -73,7 +71,6 @@ def __init__(
7371 "show_meta" : show_meta ,
7472 "ir_prefix" : ir_prefix ,
7573 "tir_prefix" : tir_prefix ,
76- "relax_prefix" : relax_prefix ,
7774 "buffer_dtype" : buffer_dtype ,
7875 "int_dtype" : int_dtype ,
7976 "float_dtype" : float_dtype ,
@@ -114,7 +111,6 @@ def script(
114111 show_meta : bool = False ,
115112 ir_prefix : str = "I" ,
116113 tir_prefix : str = "T" ,
117- relax_prefix : str = "R" ,
118114 buffer_dtype : str = "float32" ,
119115 int_dtype : str = "int32" ,
120116 float_dtype : str = "void" ,
@@ -140,8 +136,7 @@ def script(
140136 The prefix of AST nodes from tvm.ir
141137 tir_prefix : str = "T"
142138 The prefix of AST nodes from tvm.tir
143- relax_prefix : str = "R"
144- The prefix of AST nodes from tvm.relax
139+
145140 buffer_dtype : str = "float32"
146141 The default data type of buffer
147142 int_dtype : str = "int32"
@@ -179,51 +174,6 @@ def script(
179174 show_meta = show_meta ,
180175 ir_prefix = ir_prefix ,
181176 tir_prefix = tir_prefix ,
182- relax_prefix = relax_prefix ,
183- buffer_dtype = buffer_dtype ,
184- int_dtype = int_dtype ,
185- float_dtype = float_dtype ,
186- verbose_expr = verbose_expr ,
187- indent_spaces = indent_spaces ,
188- print_line_numbers = print_line_numbers ,
189- num_context_lines = num_context_lines ,
190- syntax_sugar = syntax_sugar ,
191- path_to_underline = path_to_underline ,
192- path_to_annotate = path_to_annotate ,
193- obj_to_underline = obj_to_underline ,
194- obj_to_annotate = obj_to_annotate ,
195- ),
196- )
197-
198- def _relax_script (
199- self ,
200- * ,
201- name : Optional [str ] = None ,
202- show_meta : bool = False ,
203- ir_prefix : str = "I" ,
204- tir_prefix : str = "T" ,
205- relax_prefix : str = "R" ,
206- buffer_dtype : str = "float32" ,
207- int_dtype : str = "int32" ,
208- float_dtype : str = "void" ,
209- verbose_expr : bool = False ,
210- indent_spaces : int = 4 ,
211- print_line_numbers : bool = False ,
212- num_context_lines : int = - 1 ,
213- syntax_sugar : bool = True ,
214- path_to_underline : Optional [List [ObjectPath ]] = None ,
215- path_to_annotate : Optional [Dict [ObjectPath , str ]] = None ,
216- obj_to_underline : Optional [List [Object ]] = None ,
217- obj_to_annotate : Optional [Dict [Object , str ]] = None ,
218- ) -> str :
219- return _relax_script (
220- self ,
221- PrinterConfig (
222- name = name ,
223- show_meta = show_meta ,
224- ir_prefix = ir_prefix ,
225- tir_prefix = tir_prefix ,
226- relax_prefix = relax_prefix ,
227177 buffer_dtype = buffer_dtype ,
228178 int_dtype = int_dtype ,
229179 float_dtype = float_dtype ,
@@ -248,7 +198,6 @@ def show(
248198 show_meta : bool = False ,
249199 ir_prefix : str = "I" ,
250200 tir_prefix : str = "T" ,
251- relax_prefix : str = "R" ,
252201 buffer_dtype : str = "float32" ,
253202 int_dtype : str = "int32" ,
254203 float_dtype : str = "void" ,
@@ -279,8 +228,7 @@ def show(
279228 The prefix of AST nodes from tvm.ir
280229 tir_prefix : str = "T"
281230 The prefix of AST nodes from tvm.tir
282- relax_prefix : str = "R"
283- The prefix of AST nodes from tvm.relax
231+
284232 buffer_dtype : str = "float32"
285233 The default data type of buffer
286234 int_dtype : str = "int32"
@@ -316,7 +264,6 @@ def show(
316264 show_meta = show_meta ,
317265 ir_prefix = ir_prefix ,
318266 tir_prefix = tir_prefix ,
319- relax_prefix = relax_prefix ,
320267 buffer_dtype = buffer_dtype ,
321268 int_dtype = int_dtype ,
322269 float_dtype = float_dtype ,
0 commit comments