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

Fix track context manager #2915

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
Next Next commit
Fix track context manager
nikita-savelyevv committed Aug 26, 2024
commit 6df4e90dc551552c684ee040f4580d615877f6f7
3 changes: 2 additions & 1 deletion nncf/common/logging/track_progress.py
Original file line number Diff line number Diff line change
@@ -227,7 +227,8 @@ def __enter__(self):
kwargs["weights"] = self.weights
kwargs["completed_steps"] = 0
self.task = self.progress.add_task(self.description, total=self.total, **kwargs)
return self.progress.__enter__()
self.progress.__enter__()
return self

def __exit__(self, *args):
self.progress.__exit__(*args)