neural_compressor.data.dataloaders.pytorch_dataloader

Initialize the DATASETS class.

Module Contents

Classes

PyTorchDataLoader

PyTorchDataLoader inherits from BaseDataLoader.

class neural_compressor.data.dataloaders.pytorch_dataloader.PyTorchDataLoader(dataset, batch_size=1, last_batch='rollover', collate_fn=None, sampler=None, batch_sampler=None, num_workers=0, pin_memory=False, shuffle=False, distributed=False)

Bases: neural_compressor.data.dataloaders.base_dataloader.BaseDataLoader

PyTorchDataLoader inherits from BaseDataLoader.