Skip to content

Add try_run and fix config of dtype_generalizer.py#629

Merged
Xreki merged 5 commits into
PaddlePaddle:developfrom
WHoutstanding:add_try_run
Feb 3, 2026
Merged

Add try_run and fix config of dtype_generalizer.py#629
Xreki merged 5 commits into
PaddlePaddle:developfrom
WHoutstanding:add_try_run

Conversation

@WHoutstanding

Copy link
Copy Markdown
Contributor

PR Category

other

Description

Add try_run to config of dtype_generalizer.py and fix config of dtype_generalizer.py:
self.model_runnable_predicator_class_name = "RunModelPredicator"
self.model_runnable_predicator_config = {"use_dummy_inputs": True}

@paddle-bot

paddle-bot Bot commented Feb 2, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label Feb 2, 2026
@WHoutstanding

Copy link
Copy Markdown
Contributor Author

"model_runnable_predicator_filepath": 依赖于:

GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(
os.path.dirname(graph_net.__file__))")
GRAPHNET_ROOT="$GRAPH_NET_ROOT/../"

所以未作修改

self.model_path_prefix = config.get("model_path_prefix", "")
self.model_runnable_predicator_class_name = "RunModelPredicator"
self.model_runnable_predicator_config = {"use_dummy_inputs": True}
self.try_run = config.get("try_run", "")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里默认值与L273保持一致

self.model_path_prefix = config.get("model_path_prefix", "")
self.model_runnable_predicator_class_name = "RunModelPredicator"
self.model_runnable_predicator_config = {"use_dummy_inputs": True}
self.try_run = config.get("try_run", "true")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try_run是个python的bool变量,这里应该用python的True

@Xreki Xreki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xreki Xreki merged commit 3cc751f into PaddlePaddle:develop Feb 3, 2026
3 checks passed
@WHoutstanding WHoutstanding deleted the add_try_run branch February 3, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants