昇腾社区首页
中文
注册
开发者
下载

(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]

参数说明

  • inputTensor):shape的输入张量,值为(minibatch, in_channels, iH, iW)。
  • weightTensor):shape过滤器,值为(out_channels, in_channels/groups, kH, kW)。
  • biasTensor):可选参数,shape偏差(out_channels)。
  • strideList[int]):卷积核步长。
  • paddingList[int]):输入两侧的隐式填充。
  • dilationList[int]):内核元素间距。
  • groupsint):对输入进行分组。in_channels可被组数整除。