talebolano / yolov3-network-slimming

yolov3 network slimming剪枝的一种实现
344 stars 93 forks source link

关于donntprune的一个疑问 #36

Open CnybTseng opened 5 years ago

CnybTseng commented 5 years ago

donntprune = [] for k, m in enumerate(model.modules()): if isinstance(m, shortcutLayer): x = k + m.froms - 8 donntprune.append(x) x = k - 3 donntprune.append(x)

这段代码的x = k + m.froms - 8,m.froms应该是等于-3,那么x = k + m.froms - 8等价于x = k - 11,是这样吗?也就是当前层之前的倒数第11层,是这样吗?不太明白,望指教