torch_npu.npu_interleave_rope

功能描述

接口原型

torch_npu.npu_interleave_rope(Tensor x, Tensor cos, Tensor sin) -> Tensor

参数说明

输出说明

y:Tensor类型,表示旋转编码后的结果。shape、数据类型、数据格式与输入x保持一致,不支持非连续的Tensor。

约束说明

支持的型号

调用示例