深度可分离卷积
深度可分离卷积 = depth-wise conv + point-wise conv。
depth-wise conv:输入特征图每个通道作为一个group,用一个kernel处理。
point-wise conv:kernel size =1 的普通卷积。
import torch
import torch.nn as nn
stride = 1
kernel_size = 3
in_ch = 10
out_ch = 3
conv_normal = nn.Conv2d(in_channels=in_ch,
out_channels=out_ch,
kernel_size=kernel_size,
stride=stride)
input = torch

最低0.47元/天 解锁文章
1219

被折叠的 条评论
为什么被折叠?



