Shortcuts

Sampling Strategies

Samplers control how data is retrieved from the replay buffer storage.

PrioritizedSampler(*args, **kwargs)

Prioritized sampler for replay buffer.

PrioritizedSliceSampler(*args, **kwargs)

Samples slices of data along the first dimension, given start and stop signals, using prioritized sampling.

RandomSampler(*args, **kwargs)

A uniformly random sampler for composable replay buffers.

Sampler(*args, **kwargs)

A generic sampler base class for composable Replay Buffers.

SamplerEnsemble(*args, **kwargs)

An ensemble of samplers.

SamplerWithoutReplacement(*args, **kwargs)

A data-consuming sampler that ensures that the same sample is not present in consecutive batches.

SliceSampler(*args, **kwargs)

Samples slices of data along the first dimension, given start and stop signals.

SliceSamplerWithoutReplacement(*args, **kwargs)

Samples slices of data along the first dimension, given start and stop signals, without replacement.

StalenessAwareSampler(*args, **kwargs)

A sampler that weights entries by freshness and filters stale entries.

Writers

Writers control how data is written to the storage.

RoundRobinWriter([compilable])

A RoundRobin Writer class for composable replay buffers.

TensorDictMaxValueWriter([rank_key, reduction])

A Writer class for composable replay buffers that keeps the top elements based on some ranking key.

TensorDictRoundRobinWriter([compilable])

A RoundRobin Writer class for composable, tensordict-based replay buffers.

Writer([compilable])

A ReplayBuffer base Writer class.

WriterEnsemble(*writers)

An ensemble of writers.

Docs

Lorem ipsum dolor sit amet, consectetur

View Docs

Tutorials

Lorem ipsum dolor sit amet, consectetur

View Tutorials

Resources

Lorem ipsum dolor sit amet, consectetur

View Resources