def to_ndarray(self):
assert self.indices is None, "<STR_LIT>"<EOL>return np.array(self.storage, dtype=get_dtype(self.bigdl_type)).reshape(self.shape)<EOL>
Transfer JTensor to ndarray.
As SparseTensor may generate an very big ndarray, so we don't support this function for SparseTensor.
:return: a ndarray