Lyken17 / pytorch-OpCounter

Count the MACs / FLOPs of your PyTorch model.
MIT License
4.9k stars 528 forks source link

why these are zero ops ? relu/dropout/pool #185

Closed lk137095576 closed 1 year ago

lk137095576 commented 2 years ago

zero_ops = ( nn.ReLU, nn.ReLU6, nn.Dropout, nn.MaxPool2d, nn.AvgPool2d, nn.AdaptiveAvgPool2d, ) zero op? there are no computation? or some reason?