einops.asnumpy
Convert a tensor of an imperative framework (i.e. numpy/cupy/torch/jax/etc.) to numpy.ndarray
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tensor
|
Tensor
|
tensor of any known imperative framework |
required |
Returns:
| Type | Description |
|---|---|
np_ndarray
|
|
Source code in einops/einops.py
771 772 773 774 775 776 777 778 779 780 781 | |