irtk.io.to_torch_i

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

Converts a numpy array to a torch integer tensor.

Parameters:

data – The input numpy array.

Returns:

The torch integer tensor.