Tensor.asarray¶
- Tensor.asarray(out=None)[source]¶
Extract the data of this tensor as a Numpy array.
This method should be overridden by subclasses.
- Parameters:
- out
numpy.ndarray
, optional Array to write the result to.
- out
- Returns:
- asarray
numpy.ndarray
Numpy array of the same data type and shape as the space. If
out
was given, the returned object is a reference to it.
- asarray