Coerces wrapped data to numpy and returns a numpy.ndarray
(self)
| 853 | return self._replace(data=data_chunked) |
| 854 | |
| 855 | def to_numpy(self) -> np.ndarray[Any, Any]: |
| 856 | """Coerces wrapped data to numpy and returns a numpy.ndarray""" |
| 857 | # TODO an entrypoint so array libraries can choose coercion method? |
| 858 | return to_numpy(self._data) |
| 859 | |
| 860 | def as_numpy(self) -> Self: |
| 861 | """Coerces wrapped data into a numpy array, returning a Variable.""" |