Skip to content

Commit

Permalink
[Train] Backwards Compatibility for TrainingCallback (#19566)
Browse files Browse the repository at this point in the history
  • Loading branch information
amogkam authored and matthewdeng committed Oct 21, 2021
1 parent 8acece8 commit 8792714
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/ray/util/sgd/v2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from ray.train import * # noqa: F401, F403
import warnings

from ray.train import * # noqa: F401, F403
from ray.train import TrainingCallback

SGDCallback = TrainingCallback

warnings.warn("ray.util.sgd.v2 has been moved to ray.train.")
3 changes: 3 additions & 0 deletions python/ray/util/sgd/v2/callbacks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from ray.train.callbacks import * # noqa: F401, F403
from ray.train.callbacks import TrainingCallback

SGDCallback = TrainingCallback

0 comments on commit 8792714

Please sign in to comment.