-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[tune] fix Tensorboard file descriptor leak #12425
[tune] fix Tensorboard file descriptor leak #12425
Conversation
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Theres just some extra comments to be removed.
def testFileFree(self): | ||
class MyTrainable(Trainable): | ||
def setup(self, config): | ||
# Make sure this is large enough so ray uses object store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch
self.verbose = verbose | ||
|
||
def on_trial_result(self, *args, **kwargs): | ||
# assert len(ray.objects()) <= 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch
Signed-off-by: Richard Liaw <rliaw@berkeley.edu>
@amogkam thanks for the fast review! |
Why are these changes needed?
We have a tensorboard file-descriptor leak.
when running:
Checks
scripts/format.sh
to lint the changes in this PR.