Files
Logan Adams fabcf407f9 Cleanup code docs warnings (#6783)
We have a number of warnings in our readthedocs sphinx/autodoc .rst
files, so this cleans some of those up so we can fix real issues there.
2024-11-25 11:30:47 -08:00

16 lines
346 B
ReStructuredText

Inference API
=============
:func:`deepspeed.init_inference` returns an *inference engine*
of type :class:`InferenceEngine`.
.. code-block:: python
for step, batch in enumerate(data_loader):
#forward() method
loss = engine(batch)
Forward Propagation
-------------------
.. autofunction:: deepspeed.InferenceEngine.forward