xxradon / PytorchToCaffe

Pytorch model to caffe model, supported pytorch 0.3, 0.3.1, 0.4, 0.4.1 ,1.0 , 1.0.1 , 1.2 ,1.3 .notice that only pytorch 1.1 have some bugs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adaptiveavgpool

riskeverything opened this issue · comments

I see the code,it seems support the adaptiveavgpool,but,when I use it,like:
Self.avgpool = nn.AdaptiveAvgPool2d(1)
Y=self.avgpool(x).view(b,c)

It doesn’t work.and the error is type error None has type Nonetype,but expected one of bytes,Unicode

My env is pytorch 1.2,python 3.6

Can you give some suggestion,how can I fix it?

commented

hi , @riskeverything
i meet the same problem. Have you solved it?
If you had solved it could you share your solution?
Thanks!