(beta)torch_npu.npu_slice
产品支持情况
| 产品 | 是否支持 |
|---|---|
| [object Object]Atlas A3 训练系列产品[object Object] | √ |
| [object Object]Atlas A2 训练系列产品[object Object] | √ |
| [object Object]Atlas 推理系列产品[object Object] | √ |
| [object Object]Atlas 训练系列产品[object Object] | √ |
功能说明
从张量中提取切片。
函数原型
[object Object]
注意:[object Object] 该接口不支持反向计算。
参数说明
- self (
Tensor):输入张量。 - offsets (
List[int]):支持的数据类型为int32,int64。 - size (
List[int]):支持的数据类型为int32,int64。
调用示例
[object Object]