dataloader
The base dataloader class.
It defines the base dataloader class that can be used for loading data from files.
Attributes:
Name | Type | Description |
---|---|---|
name |
str, default = 'base_dataloader'
|
The name of the base dataloader class. |
Methods:
Name | Description |
---|---|
__init__ |
The base dataloader class initialization method. |
load |
The load method for loading the data from file. |
Source code in tinybig/data/base_data.py
__init__(train_batch_size, test_batch_size, name='base_dataloader', *args, **kwargs)
The initialization method of base dataloader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the base loader class object. |
'base_dataloader'
|
Returns:
Type | Description |
---|---|
object
|
The initialized object of the base dataloader class. |
Source code in tinybig/data/base_data.py
load(*args, **kwargs)
abstractmethod
The load function of the base dataloader class.
It loads the data from file in the dataloader class. This method is declared to be abstract, and needs to be implemented in the inherited class.