TensorPlay
Reference guides
Copy
View MarkdownDownload .md

tensorplay.utils.data

Memory Pinning

tensorplay.utils.data.DataLoader

Data loader combines a dataset and a sampler, and provides an iterable over the given dataset.

tensorplay.utils.data.Dataset

An abstract class representing a Dataset.

tensorplay.utils.data.IterableDataset

An iterable Dataset.

tensorplay.utils.data.TensorDataset

Dataset wrapping tensors.

tensorplay.utils.data.StackDataset

Dataset as a stacking of multiple datasets.

tensorplay.utils.data.ConcatDataset

Dataset as a concatenation of multiple datasets.

tensorplay.utils.data.ChainDataset

Dataset for chaining multiple IterableDataset s.

tensorplay.utils.data.Subset

Subset of a dataset at specified indices.

tensorplay.utils.data.default_collate

Take in a batch of data and put the elements within the batch into a tensor with an additional outer dimension - batch size.

tensorplay.utils.data.default_convert

Convert each NumPy array element into a tensorplay.Tensor.

tensorplay.utils.data.get_worker_info

Returns the information about the current DataLoader iterator worker process.

tensorplay.utils.data.Sampler

Base class for all Samplers.

tensorplay.utils.data.SequentialSampler

Samples elements sequentially, always in the same order.

tensorplay.utils.data.RandomSampler

Samples elements randomly.

tensorplay.utils.data.SubsetRandomSampler

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

tensorplay.utils.data.WeightedRandomSampler

Samples elements from [0,..,len(weights)-1] with given probabilities (weights).

tensorplay.utils.data.BatchSampler

Wraps another sampler to yield a mini-batch of indices.

Ask DeepWiki