Skip to content

Commit

Permalink
[SOT] Remove sot tracker viewer (PaddlePaddle#64490)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored and co63oc committed May 23, 2024
1 parent 60aacc2 commit c057daa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
from ...symbolic.statement_ir import Reference, Symbol
from ...symbolic.symbolic_context import SymbolicTraceContext
from ...utils import (
ENV_SHOW_TRACKERS,
NameGenerator,
SotUndefinedVar,
inner_error_default_handler,
Expand Down Expand Up @@ -447,12 +446,6 @@ def start_compile(self, *ret_vars: VariableBase):
self.restore_side_effects(self.side_effects.proxy_variables)
self.pycode_gen.gen_enable_eval_frame()

tracker_output_path = ENV_SHOW_TRACKERS.get()
if tracker_output_path:
from .tracker_viewer import view_tracker

view_tracker(list(ret_vars), tracker_output_path, format="png")

def call_paddle_api(
self,
func: Callable[..., Any],
Expand Down
115 changes: 0 additions & 115 deletions python/paddle/jit/sot/opcode_translator/executor/tracker_viewer.py

This file was deleted.

1 change: 0 additions & 1 deletion python/paddle/jit/sot/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
ENV_CLEAN_CODE,
ENV_COST_MODEL,
ENV_MIN_GRAPH_SIZE,
ENV_SHOW_TRACKERS,
ENV_SOT_ALLOW_DYNAMIC_SHAPE,
ENV_SOT_EXPORT,
ENV_SOT_LOG_LEVEL,
Expand Down
1 change: 0 additions & 1 deletion python/paddle/jit/sot/utils/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
ENV_MIN_GRAPH_SIZE = IntegerEnvironmentVariable("MIN_GRAPH_SIZE", 10)
ENV_SOT_LOG_LEVEL = IntegerEnvironmentVariable("SOT_LOG_LEVEL", 0)
ENV_STRICT_MODE = BooleanEnvironmentVariable("STRICT_MODE", False)
ENV_SHOW_TRACKERS = StringEnvironmentVariable("SHOW_TRACKERS", "")
ENV_CLEAN_CODE = BooleanEnvironmentVariable("CLEAN_CODE", False)
ENV_SOT_WITH_CONTROL_FLOW = BooleanEnvironmentVariable(
"SOT_WITH_CONTROL_FLOW", True
Expand Down

0 comments on commit c057daa

Please sign in to comment.