This is an automated email from the ASF dual-hosted git repository.
junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new ff45cfbee8 [TVMScript][FIX] Disable `show_object_address` in printing
by default (#15705)
ff45cfbee8 is described below
commit ff45cfbee89cc636402c6c346a9a1435c568566f
Author: Siyuan Feng <[email protected]>
AuthorDate: Sat Sep 9 09:07:02 2023 +0800
[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.
---
python/tvm/runtime/script_printer.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/python/tvm/runtime/script_printer.py
b/python/tvm/runtime/script_printer.py
index 2ed2b8ddd4..be2587ae09 100644
--- a/python/tvm/runtime/script_printer.py
+++ b/python/tvm/runtime/script_printer.py
@@ -61,7 +61,7 @@ class PrinterConfig(Object):
print_line_numbers: bool = False,
num_context_lines: Optional[int] = None,
syntax_sugar: bool = True,
- show_object_address: bool = True,
+ show_object_address: bool = False,
path_to_underline: Optional[List[ObjectPath]] = None,
path_to_annotate: Optional[Dict[ObjectPath, str]] = None,
obj_to_underline: Optional[List[Object]] = None,
@@ -158,7 +158,7 @@ class Scriptable:
syntax_sugar: bool = True
Whether to output with syntax sugar, set false for complete
printing.
show_object_address: bool = False
- Whether to include the object's adddress as part of the TVMScript
name
+ Whether to include the object's address as part of the TVMScript
name
path_to_underline : Optional[List[ObjectPath]] = None
Object path to be underlined
path_to_annotate : Optional[Dict[ObjectPath, str]] = None
@@ -213,7 +213,7 @@ class Scriptable:
print_line_numbers: bool = False,
num_context_lines: int = -1,
syntax_sugar: bool = True,
- show_object_address: bool = True,
+ show_object_address: bool = False,
path_to_underline: Optional[List[ObjectPath]] = None,
path_to_annotate: Optional[Dict[ObjectPath, str]] = None,
obj_to_underline: Optional[List[Object]] = None,
@@ -254,7 +254,7 @@ class Scriptable:
syntax_sugar: bool = True
Whether to output with syntax sugar, set false for complete
printing.
show_object_address: bool = False
- Whether to include the object's adddress as part of the TVMScript
name
+ Whether to include the object's address as part of the TVMScript
name
path_to_underline : Optional[List[ObjectPath]] = None
Object path to be underlined
path_to_annotate : Optional[Dict[ObjectPath, str]] = None