(beta)torch_npu.npu_broadcast
须知:[object Object] 该接口计划废弃,可以使用
torch.broadcast_to接口进行替换。
产品支持情况
| 产品 | 是否支持 |
|---|---|
| [object Object]Atlas A3 训练系列产品[object Object] | √ |
| [object Object]Atlas A2 训练系列产品[object Object] | √ |
| [object Object]Atlas 训练系列产品[object Object] | √ |
| [object Object]Atlas 推理系列产品[object Object] | √ |
功能说明
返回self张量的新视图,其单维度扩展,结果连续。张量也可以扩展更多维度,新的维度添加在最前面。
函数原型
[object Object]
参数说明
- self(
Tensor):输入张量。 - size(
List[int]):对应扩展尺寸。
调用示例
[object Object]