mindspore.Tensor.flush_from_cache
- Tensor.flush_from_cache()[source]
Flush cache data to host if tensor is cache enable.
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], dtype=np.float32)) >>> y = x.flush_from_cache() >>> print(y) None