Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive_avg_pool2d转换失败 #112

Open
Single430 opened this issue Jul 1, 2021 · 1 comment
Open

Adaptive_avg_pool2d转换失败 #112

Single430 opened this issue Jul 1, 2021 · 1 comment

Comments

@Single430
Copy link

你好,非常感谢您的项目!
但是我在代码中有看到Adaptive_avg_pool2d对应的op注册,不过在转换过程报一下错误:

TypeError: adaptive_avg_pool2d() takes 2 positional arguments but 4 were given

我知道是传的参数多了,看代码这里:

caffe_out = raw(input, kernel_size, stride, padding, ceil_mode=True)

应该如何修改呢?
@xxradon @Guanmoyu

@vmc-7645
Copy link

Replacing:

caffe_out = raw(input, kernel_size, stride, padding, ceil_mode=True)

With

caffe_out = raw(input, kernel_size)

Worked for me (in removing the error), however the model still didn't seem to work afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants