2021-08-02 01:47:14 -07:00
|
|
|
.. _sgd-api:
|
|
|
|
|
|
|
|
RaySGD API
|
2021-09-14 09:07:25 -07:00
|
|
|
==========
|
|
|
|
|
|
|
|
.. _sgd-api-trainer:
|
2021-08-02 01:47:14 -07:00
|
|
|
|
2021-09-14 09:07:25 -07:00
|
|
|
Trainer
|
|
|
|
-------
|
2021-08-02 01:47:14 -07:00
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.Trainer
|
|
|
|
:members:
|
|
|
|
|
2021-09-14 09:07:25 -07:00
|
|
|
.. _sgd-api-iterator:
|
|
|
|
|
|
|
|
SGDIterator
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.SGDIterator
|
|
|
|
:members:
|
|
|
|
|
|
|
|
.. _sgd-api-backend-config:
|
|
|
|
|
|
|
|
BackendConfig
|
|
|
|
-------------
|
|
|
|
|
2021-08-02 01:47:14 -07:00
|
|
|
.. autoclass:: ray.util.sgd.v2.BackendConfig
|
|
|
|
|
2021-09-14 09:07:25 -07:00
|
|
|
.. _sgd-api-torch-config:
|
|
|
|
|
|
|
|
TorchConfig
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2021-08-02 01:47:14 -07:00
|
|
|
.. autoclass:: ray.util.sgd.v2.TorchConfig
|
|
|
|
|
2021-09-14 09:07:25 -07:00
|
|
|
.. _sgd-api-tensorflow-config:
|
|
|
|
|
|
|
|
TensorflowConfig
|
|
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.TensorflowConfig
|
|
|
|
|
|
|
|
.. _sgd-api-horovod-config:
|
|
|
|
|
|
|
|
HorovodConfig
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.HorovodConfig
|
|
|
|
|
|
|
|
.. _sgd-api-callback:
|
|
|
|
|
|
|
|
SGDCallback
|
|
|
|
-----------
|
|
|
|
|
2021-08-02 01:47:14 -07:00
|
|
|
.. autoclass:: ray.util.sgd.v2.SGDCallback
|
2021-09-14 09:07:25 -07:00
|
|
|
:members:
|
|
|
|
|
|
|
|
.. _sgd-api-json-logger-callback:
|
|
|
|
|
|
|
|
JsonLoggerCallback
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.callbacks.JsonLoggerCallback
|
|
|
|
|
|
|
|
.. _sgd-api-tbx-logger-callback:
|
|
|
|
|
|
|
|
TBXLoggerCallback
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.callbacks.TBXLoggerCallback
|
|
|
|
|
|
|
|
.. _sgd-api-checkpoint-strategy:
|
|
|
|
|
|
|
|
CheckpointStrategy
|
|
|
|
------------------
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.sgd.v2.CheckpointStrategy
|
|
|
|
|
|
|
|
Training Function Utilities
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
sgd.report
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autofunction:: ray.util.sgd.v2.report
|
|
|
|
|
|
|
|
sgd.load_checkpoint
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autofunction:: ray.util.sgd.v2.load_checkpoint
|
|
|
|
|
|
|
|
sgd.save_checkpoint
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autofunction:: ray.util.sgd.v2.save_checkpoint
|
|
|
|
|
|
|
|
sgd.world_rank
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autofunction:: ray.util.sgd.v2.world_rank
|