(beta)torch_npu.npu_conv2d
须知:[object Object] 该接口计划废弃,可以使用
torch.nn.functional.conv2d接口进行替换。
产品支持情况
| 产品 | 是否支持 |
|---|---|
| [object Object]Atlas A3 训练系列产品[object Object] | √ |
| [object Object]Atlas A2 训练系列产品[object Object] | √ |
| [object Object]Atlas 训练系列产品[object Object] | √ |
| [object Object]Atlas 推理系列产品[object Object] | √ |
功能说明
在由多个输入平面组成的输入图像上应用一个2D卷积。
函数原型
[object Object]
参数说明
- input(
Tensor):shape的输入张量,值为(minibatch, in_channels, iH, iW)。 - weight(
Tensor):shape过滤器,值为(out_channels, in_channels/groups, kH, kW)。 - bias(
Tensor):可选参数,shape偏差(out_channels)。 - stride(
List[int]):卷积核步长。 - padding(
List[int]):输入两侧的隐式填充。 - dilation(
List[int]):内核元素间距。 - groups(
int):对输入进行分组。in_channels可被组数整除。