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/
MultiMatchingResult
backend – (default:
pygmtools.BACKEND
variable) the backend for computation.
- Returns
numpy ndarray