Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle] Fix regression of Ruff in sot #60483

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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