From 0ec4bca6cbf1b6ec63aa095c164bf58bc08724b6 Mon Sep 17 00:00:00 2001 From: Siyuan Feng Date: Fri, 8 Sep 2023 14:01:06 +0800 Subject: [PATCH] [TVMScript][FIX] Disable `show_object_address` in printing by default 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 2ed2b8ddd4bc..be2587ae094e 100644 --- a/python/tvm/runtime/script_printer.py +++ b/python/tvm/runtime/script_printer.py @@ -61,7 +61,7 @@ def __init__( 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 @@ def script( 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 @@ def show( 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 @@ def show( 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