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

[REQUEST] Support profiling backward using Flops Profiler as a standalone package #2234

Open
yzs981130 opened this issue Aug 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@yzs981130
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I try to use flops profiler as a standalone package to profiling the backward of a custom model. I have followed both two instructions, here and here. However, both examples only consider profiling the forward stage. I check the code and it seems that it currently only prints the bwd_latency when using runtime as below

if self.ds_engine and self.ds_engine.wall_clock_breakdown():
bwd_latency = self.ds_engine.timers('backward').elapsed(False) / 1000.0
step_latency = self.ds_engine.timers('step').elapsed(False) / 1000.0
print('{:<60} {:<8}'.format('bwd latency: ',
duration_to_string(bwd_latency)))

Describe the solution you'd like
Is there any approach to profiling the backward by the flops profiler?

@yzs981130 yzs981130 added the enhancement New feature or request label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant