mindspore.Tensor.storage

查看源文件
mindspore.Tensor.storage()

返回Tensor的存储,该存储不区分dtype,支持CPU/GPU/Ascend平台。

返回:

UntypedStorage,底层的Storage实现。

异常:
  • RuntimeError - Tensor上不存在存储。