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] Close MLflowVisBackend only if active (#1144) #1151

Merged

Conversation

zimonitrome
Copy link
Contributor

Motivation

There is currently a bug (#1144) when running multi GPU training with MLflowVisBackend, wherein the VisBackend seemingly will try to close on multiple processes, when it can only close on one of the processes. Checking for any self.cfg in the close() method would cause the script to crash.

Modification

The check hasattr(self, '_mlflow') was only done for a ending the mlflow run (self._mlflow.end_run()). I propose to check this at the start of the close() method instead.

@CLAassistant
Copy link

CLAassistant commented May 17, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

4 participants