tensorwatch icon indicating copy to clipboard operation
tensorwatch copied to clipboard

Need to support AdaptiveAvgPool2d for ResNet

Open sakaia opened this issue 6 years ago • 1 comments

When I run on TensorWatch on Google Colab, Following messages are appeared.

[MAdd]: AdaptiveAvgPool2d is not supported!
[Flops]: AdaptiveAvgPool2d is not supported!
[Memory]: AdaptiveAvgPool2d is not supported!

Test Code is follows

!pip install tensorwatch

import tensorwatch as tw
import torchvision.models

resnet_model = torchvision.models.resnet50()
tw.model_stats(resnet_model, [1, 3, 224, 224])

sakaia avatar May 27 '19 04:05 sakaia

This is currently expected because TensorWatch uses another library called torchstat underneath which does not support AdaptiveAvgPool2d layers for computing Flops and Memory. We are looking in to enhancing torchstat but for now you will get flops which are bit less than actual values when model uses above layer.

sytelus avatar May 27 '19 11:05 sytelus