Files
ray/python/ray/util/sgd/__init__.py
T
Maksim Smolin 3a134c7224 [RaySGD] Rename PyTorch API endpoints to start with Torch (#7425)
* Start renaming pytorch to torch

* Rename PyTorchTrainer to TorchTrainer

* Rename PyTorch runners to Torch runners

* Finish renaming API

* Rename to torch in tests

* Finish renaming docs + tests

* Run format + fix DeprecationWarning

* fix

* move tests up

* rename

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
2020-03-03 16:44:42 -08:00

10 lines
307 B
Python

from ray.util.sgd.torch import TorchTrainer
from ray.util.sgd.tf import TFTrainer
__all__ = ["TorchTrainer", "TFTrainer"]
def PyTorchTrainer(**kwargs):
raise DeprecationWarning("ray.util.sgd.pytorch.PyTorchTrainer has been "
"renamed to ray.util.sgd.torch.TorchTrainer")