irtk.io.to_torch_f

irtk.io.to_torch_f(data: ndarray) torch.Tensor

Converts a numpy array to a torch float tensor.

Parameters:

data – The input numpy array.

Returns:

The torch float tensor.