(beta)torch_npu.npu_reshape
须知:[object Object] 该接口计划废弃,可以使用
torch.reshape接口进行替换。
产品支持情况
| 产品 | 是否支持 |
|---|---|
| [object Object]Atlas A3 训练系列产品[object Object] | √ |
| [object Object]Atlas A2 训练系列产品[object Object] | √ |
| [object Object]Atlas 训练系列产品[object Object] | √ |
| [object Object]Atlas 推理系列产品[object Object] | √ |
功能说明
reshape张量。仅更改张量shape,其数据不变。
函数原型
[object Object]
参数说明
- self(
Tensor):输入张量。 - shape(
List[int]):定义输出张量的shape。 - can_refresh(
bool):是否就地刷新reshape,默认值为False。
约束说明
该运算符不能被aclopExecute API直接调用。
调用示例
[object Object]