mlx.nn.ConvTranspose2d#
- class ConvTranspose2d(in_channels: int, out_channels: int, kernel_size: int | tuple, stride: int | tuple = 1, padding: int | tuple = 0, dilation: int | tuple = 1, output_padding: int | tuple = 0, bias: bool = True)#
对多通道输入图像应用二维转置卷积。
通道预计在最后,即输入形状应为
NHWC
,其中N
是批量维度H
是输入图像高度W
是输入图像宽度C
是输入通道数
- 参数:
方法