ultralytics 8.3.74 Fix Ray Tune callback error (#19144)
Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
ff1a04609f
commit
845d5007dd
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
||||||
|
|
||||||
__version__ = "8.3.73"
|
__version__ = "8.3.74"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ except (ImportError, AssertionError):
|
||||||
|
|
||||||
def on_fit_epoch_end(trainer):
|
def on_fit_epoch_end(trainer):
|
||||||
"""Sends training metrics to Ray Tune at end of each epoch."""
|
"""Sends training metrics to Ray Tune at end of each epoch."""
|
||||||
if ray.train._internal.session._get_session(): # replacement for deprecated ray.tune.is_session_enabled()
|
if ray.train._internal.session.get_session(): # replacement for deprecated ray.tune.is_session_enabled()
|
||||||
metrics = trainer.metrics
|
metrics = trainer.metrics
|
||||||
session.report({**metrics, **{"epoch": trainer.epoch + 1}})
|
session.report({**metrics, **{"epoch": trainer.epoch + 1}})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue