Tensor Data Manager#
Module for the Tensor-Data Manager class.
- class _TensorDataManager(**kwargs)[source]#
Bases:
_DataManagerInterfaceData manager for tensor-based data. It handles inputs stored as
torch.TensororLabelTensor.Initialization of the
_TensorDataManagerclass.- Parameters:
kwargs (dict) – The keyword arguments for the tensor data manager.
- to_batch()[source]#
Create a batch from the current tensor data manager.
- Returns:
A new instance of
_BatchManagerwith batched data.- Return type:
- static create_batch(items)[source]#
Create a batch from a list of
_TensorDataManageritems.- Parameters:
items (list[_TensorDataManager]) – A list of
_TensorDataManageritems to batch.- Returns:
A new instance of
_BatchManagercontaining the batched data.- Return type: