unilab.utils.tensor¶
Generic array <-> torch conversion utilities.
Functions
|
Convert torch tensor or numpy-like input to numpy. |
|
Convert numpy-like input to torch on the target device. |
Generic array <-> torch conversion utilities.
Functions
|
Convert torch tensor or numpy-like input to numpy. |
|
Convert numpy-like input to torch on the target device. |