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

add timer for steps #2416

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix cv timer
  • Loading branch information
Mddct committed Mar 18, 2024
commit c2d314ba0f2bdf613261151c41953111f0148a04
2 changes: 1 addition & 1 deletion wenet/utils/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def cv(self, model, cv_data_loader, configs):
''' Cross validation on
'''
if self.cv_step_timer is None:
self.cv_step_timer = StepTimer(self.step)
self.cv_step_timer = StepTimer(0.0)
else:
self.cv_step_timer.last_iteration = 0.0
model.eval()
Expand Down
Loading