Skip to content

Commit

Permalink
[CodeStyle] Fix regression of Ruff in sot (PaddlePaddle#60483)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored and Wanglongzhi2001 committed Jan 7, 2024
1 parent c47b56a commit 294110a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/paddle/jit/sot/opcode_translator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .skip_files import setup_skip_files
from .eval_frame_callback import eval_frame_callback # noqa: F401
from .skip_files import setup_skip_files

setup_skip_files()
6 changes: 3 additions & 3 deletions python/paddle/jit/sot/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .call_ast_utils import get_static_function, try_ast_func # noqa: F401
from .envs import ( # noqa: F401
ENV_CLEAN_CODE,
ENV_COST_MODEL,
ENV_MIN_GRAPH_SIZE,
ENV_SHOW_TRACKERS,
ENV_SOT_LOG_LEVEL,
ENV_STRICT_MODE,
ENV_SOT_WITH_CONTROL_FLOW,
ENV_STRICT_MODE,
cost_model_guard,
min_graph_size_guard,
strict_mode_guard,
Expand Down Expand Up @@ -51,8 +52,8 @@
count_if,
current_tmp_name_records,
execute_time,
flatten_extend,
flatten,
flatten_extend,
get_unbound_method,
hashable,
in_paddle_module,
Expand All @@ -72,4 +73,3 @@
no_eval_frame,
tmp_name_guard,
)
from .call_ast_utils import get_static_function, try_ast_func

0 comments on commit 294110a

Please sign in to comment.