mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
Add ray.util package and move libraries from experimental (#7100)
This commit is contained in:
@@ -46,7 +46,7 @@ def optimizer_creator(model, config):
|
||||
|
||||
|
||||
# __torch_data_start__
|
||||
from ray.experimental.sgd.pytorch.examples.train_example import LinearDataset
|
||||
from ray.util.sgd.pytorch.examples.train_example import LinearDataset
|
||||
|
||||
def data_creator(config):
|
||||
"""Constructs torch.utils.data.Dataset objects.
|
||||
@@ -108,7 +108,7 @@ ray.init()
|
||||
# __torch_ray_end__
|
||||
|
||||
# __torch_trainer_start__
|
||||
from ray.experimental.sgd import PyTorchTrainer
|
||||
from ray.util.sgd import PyTorchTrainer
|
||||
|
||||
trainer = PyTorchTrainer(
|
||||
model_creator,
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
Examples Overview
|
||||
=================
|
||||
Ray Tutorials and Examples
|
||||
==========================
|
||||
|
||||
Get started with Ray, Tune, and RLlib with these notebooks that you can run online in CoLab or Binder:
|
||||
* `Ray Tutorial Notebooks <https://github.com/ray-project/tutorial>`__
|
||||
|
||||
Example Gallery
|
||||
---------------
|
||||
|
||||
.. customgalleryitem::
|
||||
:tooltip: Build a simple parameter server using Ray.
|
||||
|
||||
Reference in New Issue
Block a user