ethanhe42 / channel-pruning

Channel Pruning for Accelerating Very Deep Neural Networks (ICCV'17)
https://arxiv.org/abs/1707.06168
MIT License
1.08k stars 310 forks source link

layer还是layer.name #56

Closed cicido closed 6 years ago

cicido commented 6 years ago

在看builder.py代码, 一个layer有四个属性,name, type, top, bottom. name,type应该是str类型 top, bottom为list类型,但其元素类型是str类型还是layer?

cicido commented 6 years ago

另一个问题: 我在builder.py大量看到: new_layer = self.net.layer.add() new_param = self.this.param.add() 等这样的add操作,是python哪个语法点?

ethanhe42 commented 6 years ago

这些全是protobuf的语法