tianshou.data
=============


Batch
-----

.. autoclass:: tianshou.data.Batch
   :members:
   :undoc-members:
   :show-inheritance:


Buffer
------

ReplayBuffer
~~~~~~~~~~~~

.. autoclass:: tianshou.data.ReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

PrioritizedReplayBuffer
~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.PrioritizedReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

HERReplayBuffer
~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.HERReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

ReplayBufferManager
~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.ReplayBufferManager
   :members:
   :undoc-members:
   :show-inheritance:

PrioritizedReplayBufferManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.PrioritizedReplayBufferManager
   :members:
   :undoc-members:
   :show-inheritance:


HERReplayBufferManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.HERReplayBufferManager
   :members:
   :undoc-members:
   :show-inheritance:

VectorReplayBuffer
~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.VectorReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

PrioritizedVectorReplayBuffer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.PrioritizedVectorReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

HERVectorReplayBuffer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.HERVectorReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

CachedReplayBuffer
~~~~~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.CachedReplayBuffer
   :members:
   :undoc-members:
   :show-inheritance:

Collector
---------

Collector
~~~~~~~~~

.. autoclass:: tianshou.data.Collector
   :members:
   :undoc-members:
   :show-inheritance:

AsyncCollector
~~~~~~~~~~~~~~

.. autoclass:: tianshou.data.AsyncCollector
   :members:
   :undoc-members:
   :show-inheritance:


Utils
-----

to_numpy
~~~~~~~~

.. autofunction:: tianshou.data.to_numpy

to_torch
~~~~~~~~

.. autofunction:: tianshou.data.to_torch

to_torch_as
~~~~~~~~~~~

.. autofunction:: tianshou.data.to_torch_as

SegmentTree
~~~~~~~~~~~

.. autoclass:: tianshou.data.SegmentTree
   :members:
   :undoc-members:
   :show-inheritance:
