Data Manager#
Module for the Data Manager factory class.
- class _DataManager(**kwargs)[source]#
Bases:
objectFactory class for data manager implementations.
This class dispatches object creation to either
_TensorDataManageror_GraphDataManagerdepending on the types of the provided keyword arguments.Create the appropriate data manager implementation based on the provided keyword arguments.
If all values in
kwargsare instances oftorch.Tensor,LabelTensor, orBaseEquation, an instance of_TensorDataManageris created. Otherwise, an instance of_GraphDataManageris created.- Parameters:
kwargs (dict) – The keyword arguments for the data manager.
- Returns:
A concrete data manager instance.
- Return type: