CAM
深度可分离卷积:普通卷积是33128,得到HW;深度可分离卷积是128个33的卷积核,得到HW128。
函数1:33、groups=in_channels;11卷积。
函数2:3*3卷积。
函数3:blocks个函数1。
类MobleNetV1和类的实例化,net = MobleNetV1(1000)。
for name,layer in net.named_children():
if name != “fc”:
x = layer(x)
print(name, ‘output shape:’, x.shape)
else:
x = x.view(x.size(0), -1)
x = layer(x)
print(name, ‘output shape:’, x.shape)
返回包含子模块的迭代器,同时产生模块的名称以及模块本身。如: