Eric-mingjie / network-slimming

Network Slimming (Pytorch) (ICCV 2017)
MIT License
909 stars 214 forks source link

请问怎么统计inference的时间? #26

Closed alanMachineLeraning closed 5 years ago

alanMachineLeraning commented 5 years ago

satrt_time = time.time() output = model(data) end_time = time.time() total_time+=(end_time-satrt_time) 为什么我这样统计,剪枝之后inference速度和不剪枝没说明区别,并没有明显提高?

Eric-mingjie commented 5 years ago
  1. 你用的网络和prune ratio是什么?从这几行代码里我看不出来
  2. 原paper附录B里有对wall clock time的分析