Tensor.asarray

Tensor.asarray(self, out=None)[source]

Extract the data of this tensor as a Numpy array.

This method should be overridden by subclasses.

Parameters
outnumpy.ndarray, optional

Array to write the result to.

Returns
asarraynumpy.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.