unilab.utils¶
- unilab.utils.to_torch(x, device)[source]¶
Convert numpy-like input to torch on the target device.
Supports torch tensors, numpy arrays, and any array exposing
__dlpack__.
Modules
NaN/Inf guard for env-layer numerical anomaly detection and state dumping. |
|
Generate backend support matrix content from registry, configs, and tests. |
|
Generic array <-> torch conversion utilities. |