TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

SubsetRandomSampler

class tensorplay.utils.data.SubsetRandomSampler(indices: Sequence[int], generator: Generator | None = None)[source]

Samples elements randomly from a given list of indices, without replacement.

Parameters:
  • indices (sequence) – a sequence of indices

  • generator (Generator) – Generator used in sampling.

On this page

Ask DeepWiki