Skip to content

Commit ff45cfb

Browse files
author
Siyuan Feng
authored
[TVMScript][FIX] Disable show_object_address in printing by default (#15705)
The new feature of printing object addresses is introduced in #15579. It's an excellent feature for debugging, but it should not be turned on by default.
1 parent cd7d64e commit ff45cfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/tvm/runtime/script_printer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
print_line_numbers: bool = False,
6262
num_context_lines: Optional[int] = None,
6363
syntax_sugar: bool = True,
64-
show_object_address: bool = True,
64+
show_object_address: bool = False,
6565
path_to_underline: Optional[List[ObjectPath]] = None,
6666
path_to_annotate: Optional[Dict[ObjectPath, str]] = None,
6767
obj_to_underline: Optional[List[Object]] = None,
@@ -158,7 +158,7 @@ def script(
158158
syntax_sugar: bool = True
159159
Whether to output with syntax sugar, set false for complete printing.
160160
show_object_address: bool = False
161-
Whether to include the object's adddress as part of the TVMScript name
161+
Whether to include the object's address as part of the TVMScript name
162162
path_to_underline : Optional[List[ObjectPath]] = None
163163
Object path to be underlined
164164
path_to_annotate : Optional[Dict[ObjectPath, str]] = None
@@ -213,7 +213,7 @@ def show(
213213
print_line_numbers: bool = False,
214214
num_context_lines: int = -1,
215215
syntax_sugar: bool = True,
216-
show_object_address: bool = True,
216+
show_object_address: bool = False,
217217
path_to_underline: Optional[List[ObjectPath]] = None,
218218
path_to_annotate: Optional[Dict[ObjectPath, str]] = None,
219219
obj_to_underline: Optional[List[Object]] = None,
@@ -254,7 +254,7 @@ def show(
254254
syntax_sugar: bool = True
255255
Whether to output with syntax sugar, set false for complete printing.
256256
show_object_address: bool = False
257-
Whether to include the object's adddress as part of the TVMScript name
257+
Whether to include the object's address as part of the TVMScript name
258258
path_to_underline : Optional[List[ObjectPath]] = None
259259
Object path to be underlined
260260
path_to_annotate : Optional[Dict[ObjectPath, str]] = None

0 commit comments

Comments
 (0)