This function trains a given model using the provided training data.
This function trains a given model using the provided training data.
Currently, the data loaded is set to have multiple sub-processes.
Currently, the data loaded is set to have multiple sub-processes.
A high enough number of workers assures that CPU computations are efficiently managed, i.e. that the bottleneck is indeed the neural network's forward and backward operations on the GPU (and not data generation)
A high enough number of workers assures that CPU computations are efficiently managed, i.e. that the bottleneck is indeed the neural network's forward and backward operations on the GPU (and not data generation)
Loader memory is also pinned, to speed up data transfer from CPU to GPU by using the page-locked memory.
Loader memory is also pinned, to speed up data transfer from CPU to GPU by using the page-locked memory.
Train data is also re-shuffled at each training epoch.
Train data is also re-shuffled at each training epoch.
Args:
Args:
data_parameters (dict): Dictionary containing relevant information for the datafiles.
data_parameters (dict): Dictionary containing relevant information for the datafiles.