mindspore.Tensor.has_init

property mindspore.Tensor.has_init

Tensor是否已经初始化。

样例:

>>> from mindspore import Tensor
>>> import numpy as np
>>> x = Tensor(np.array([[1, 2], [3, 4]]))
>>> output = x.has_init
>>> print(output)
False