torch_npu\csrc\core\npu\NPUFormat.h
int64_t at_npu::native::get_npu_format(const at::Tensor& self)
获取npu tensor格式信息,返回值类型int64_t,表示获取的npu tensor格式信息,注意:该接口通常配合申请npu私有格式内存empty_with_format使用。
self:Tensor类型,待获取格式信息的tensor。