mindspore.Tensor.has_init
- property Tensor.has_init
Whether tensor is initialized.
Warning
This interface is deprecated and will be removed after version 2.9.0.
Examples
>>> from mindspore import Tensor >>> import numpy as np >>> x = Tensor(np.array([[1, 2], [3, 4]])) >>> output = x.has_init >>> print(output) False