nichepca.utils.to_torch

Contents

nichepca.utils.to_torch#

nichepca.utils.to_torch(X)#

Convert input to torch tensor.

Parameters:

X (ndarray | spmatrix | Tensor) – Input data.

Returns:

torch.Tensor Torch tensor.