Skip to content

Commit

Permalink
cleanup env cost model
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Feb 26, 2025
1 parent 4af8662 commit 22d06e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions python/paddle/jit/sot/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from .call_ast_utils import get_static_function, try_ast_func # noqa: F401
from .envs import ( # noqa: F401
ENV_COST_MODEL,
ENV_MIN_GRAPH_SIZE,
ENV_SOT_ALLOW_DYNAMIC_SHAPE,
ENV_SOT_ENABLE_FASTER_GUARD,
Expand All @@ -25,7 +24,6 @@
ENV_SOT_WITH_CONTROL_FLOW,
ENV_STRICT_MODE,
allow_dynamic_shape_guard,
cost_model_guard,
export_guard,
faster_guard_guard,
guard_tree_guard,
Expand Down
7 changes: 0 additions & 7 deletions python/paddle/jit/sot/utils/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
StringListEnvironmentVariable,
)

ENV_COST_MODEL = BooleanEnvironmentVariable("COST_MODEL", False)
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)
Expand Down Expand Up @@ -59,12 +58,6 @@
)


@contextmanager
def cost_model_guard(value: bool):
with EnvironmentVariableGuard(ENV_COST_MODEL, value):
yield


@contextmanager
def strict_mode_guard(value: bool):
with EnvironmentVariableGuard(ENV_STRICT_MODE, value):
Expand Down

0 comments on commit 22d06e3

Please sign in to comment.