Skip to main content

NDArray::dump

public function dump() : void;

Dumps the internal information of the NDArray.


Examples

use \NDArray as nd;

$a = nd::array([[1, 2, 3, 4]]);
$a->dump();
Output
=================================================
NDArray.uuid 0
NDArray.dims [ 1 4 ]
NDArray.strides [ 16 4 ]
NDArray.ndim 2
NDArray.device CPU
NDArray.refcount 1
NDArray.descriptor.elsize 4
NDArray.descriptor.numElements 4
NDArray.descriptor.type float32
=================================================