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

[Feature]: Summarize the elapsed time of PyTorch ops in a training job. #664

Open
workingloong opened this issue Sep 6, 2023 · 1 comment

Comments

@workingloong
Copy link
Collaborator

workingloong commented Sep 6, 2023

Users usually need to detect the bottleneck of the training pipeline by viewing the elapsed time of ops. If we can automatically summarize the elapsed time after the training starts, we can automatically detect the bottleneck and make efforts to mitigate the bottleneck or give some suggestions to users.

@created-Bi
Copy link

import time

def train():
for i, epoch in enumerate(range(start_epoch, end_epoch)):
for train_sample in train_data_loader:
start_time = time.time()
doing...
print('Time consuming: {}s'.format(time.time() - start_time))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants