mindspore.Tensor.is_meta

Tensor.is_meta

Check whether the tensor is on meta device.

Returns

Bool. If the tensor is on meta device, return True. Otherwise, return False.

Examples

>>> data = mindspore.Tensor(np.ones((2, 1), np.int32), device='meta')
>>> data.is_meta
True