unilab.utils.tensor.to_numpy

unilab.utils.tensor.to_numpy(x)[source]

Convert torch tensor or numpy-like input to numpy.

Return type:

ndarray