pygmtools.utils.to_numpy
- pygmtools.utils.to_numpy(input, backend=None)[source]
Convert a tensor to a numpy ndarray. This is the helper function to convert tensors across different backends via numpy.
- Parameters
input – input tensor/
MultiMatchingResultbackend – (default:
pygmtools.BACKENDvariable) the backend for computation.
- Returns
numpy ndarray