megengine.functional.nn.conv3d¶
- conv3d(inp, weight, bias=None, stride=1, padding=0, dilation=1, groups=1, conv_mode='cross_correlation')[源代码]¶
三维卷积运算。
更多信息参见
Conv3d
。- 参数
inp (
Tensor
) – 卷积运算的特征图。weight (
Tensor
) – 卷积核。stride (
Union
[int
,Tuple
[int
,int
,int
]]) – 三维卷积运算中的步长。 默认: 1padding (
Union
[int
,Tuple
[int
,int
,int
]]) – 输入数据空域维度两侧的填充(padding)大小。仅支持填充0值。默认:0dilation (
Union
[int
,Tuple
[int
,int
,int
]]) – 三维卷积运算的扩张值(dilation)。 默认: 1groups (
int
) – number of groups into which the input and output channels are divided, so as to perform agrouped convolution
. Whengroups
is not 1,in_channels
andout_channels
must be divisible bygroups
, and the shape of weight should be(groups, out_channel // groups, in_channels // groups, depth, height, width)
. Default: 1conv_mode (
str
) – supports “cross_correlation”. Default: “cross_correlation”
- 返回类型
- 返回
输出张量。