(beta)torch_npu.npu_convolution
 该接口计划废弃,可以使用torch.nn.functional.conv2d、torch.nn.functional.conv3d或torch._C._nn.slow_conv3d接口进行替换。
接口原型
torch_npu.npu_convolution(input, weight, bias, stride, padding, dilation, groups) -> Tensor
功能描述
在由多个输入平面组成的输入图像上应用一个2D或3D卷积。
参数说明
- input (Tensor) - shape的输入张量,值为 (minibatch, in_channels, iH, iW) 或 (minibatch, in_channels, iT, iH, iW)。
 - weight (Tensor) - shape过滤器,值为 (out_channels, in_channels/groups, kH, kW) 或 (out_channels, in_channels/groups, kT, kH, kW)。
 - bias (Tensor,可选) - shape偏差 (out_channels)。
 - stride (ListInt) - 卷积核步长。
 - padding (ListInt) - 输入两侧的隐式填充。
 - dilation (ListInt) - 内核元素间距。
 - groups (Int) - 对输入进行分组。In_channels可被组数整除。
 
支持的型号
Atlas 训练系列产品 Atlas A2 训练系列产品 Atlas A3 训练系列产品 Atlas 推理系列产品 
父主题: torch_npu