(beta)torch_npu.utils.get_part_combined_tensor

接口原型

torch_npu.utils.get_part_combined_tensor (combined_tensor, index, size) -> Tensor

功能描述

根据地址偏移及内存大小,从经过torch_npu.utils.npu_combine_tensors融合后的融合Tensor中获取局部Tensor。

参数说明

输出说明

torch.Tensor:从融合Tensor中获取的局部Tensor。

约束说明

index+size不超过combined_tensor的内存大小。

支持的型号