neural_compressor.data.dataloaders.tensorflow_dataloader
TensorFlow Dataloader implementation.
Classes
Tensorflow dataloader class. |
|
Subclass of DefaultDataLoader. |
|
Subclass of DefaultDataLoader. |
|
DataLoader for framework Tensorflow. |
Module Contents
- class neural_compressor.data.dataloaders.tensorflow_dataloader.TFDataDataLoader(dataset, batch_size=1, last_batch='rollover')[source]
Tensorflow dataloader class.
In tensorflow1.x dataloader is coupled with the graph, but it also support feed_dict method to do session run, this dataloader is designed to satisfy the usage of feed dict in tf1.x. Although it’s a general dataloader and can be used in MXNet and PyTorch.
- Parameters:
dataset – obj. wrapper of needed data.
batch_size – int. batch size
- class neural_compressor.data.dataloaders.tensorflow_dataloader.TensorflowBertDataLoader[source]
Subclass of DefaultDataLoader.
this dataloader is designed to satisfy the usage of Bert models.