types.backends.BackendConfig

types.backends.BackendConfig()

Backend configuration dictionary.

Specifies backend, device, and precision settings.

Attributes

Name Type Description
backend Backend Computational backend
device Optional[Device] Hardware device
dtype Optional[str] Data type (‘float32’, ‘float64’, etc.)

Examples

>>> config: BackendConfig = {
...     'backend': 'torch',
...     'device': 'cuda:0',
...     'dtype': 'float32'
... }
>>>
>>> # Minimal config
>>> config_minimal: BackendConfig = {'backend': 'numpy'}