Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Feature Enhancement] Implement a function to collect the model's execution stats. #277

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

Open
Xreki wants to merge 31 commits into PaddlePaddle:develop
base: develop
Choose a base branch
Loading
from Xreki:collect_info

Conversation

@Xreki
Copy link
Collaborator

@Xreki Xreki commented Sep 16, 2025
edited
Loading

PR Category

Feature Enhancement

Description

执行结果如下:

[2025年09月22日 21:04:20.401] Collect information for /work/GraphNet/samples/torchvision/resnet18
Totally 1 subgraphs, 69 operators, and 0 operators failed to inference dtypes.
model_stats collection information: model_path=/work/GraphNet/samples/torchvision/resnet18, method=symbolic_trace, is_ops_complete=True
graph-net-collect-stats-log [ModelStats.num_inputs] model_path:/work/GraphNet/samples/torchvision/resnet18 42
graph-net-collect-stats-log [ModelStats.num_params] model_path:/work/GraphNet/samples/torchvision/resnet18 62
graph-net-collect-stats-log [ModelStats.num_outputs] model_path:/work/GraphNet/samples/torchvision/resnet18 1
graph-net-collect-stats-log [ModelStats.num_ops] model_path:/work/GraphNet/samples/torchvision/resnet18 69
graph-net-collect-stats-log [ModelStats.model_size] model_path:/work/GraphNet/samples/torchvision/resnet18 0.011689512B
graph-net-collect-stats-log [ModelStats.input_dtypes] model_path:/work/GraphNet/samples/torchvision/resnet18 int64:1 float32:41
graph-net-collect-stats-log [ModelStats.param_dtypes] model_path:/work/GraphNet/samples/torchvision/resnet18 float32:62
graph-net-collect-stats-log [ModelStats.op_dtypes] model_path:/work/GraphNet/samples/torchvision/resnet18 float32:69
graph-net-collect-stats-log [ModelStats.ops] model_path:/work/GraphNet/samples/torchvision/resnet18 adaptive_avg_pool2d:1 add:8 batch_norm:20 conv2d:20 flatten:1 linear:1 max_pool2d:1 relu:17
graph-net-collect-stats-log [ModelStats.source] model_path:/work/GraphNet/samples/torchvision/resnet18 torchvision
graph-net-collect-stats-log [ModelStats.heuristic_tag] model_path:/work/GraphNet/samples/torchvision/resnet18 computer_vision

Copy link

paddle-bot bot commented Sep 16, 2025

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /