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

DeformConv2d bias error #939

Closed
hhaAndroid opened this issue Apr 12, 2021 · 0 comments · Fixed by #940
Closed

DeformConv2d bias error #939

hhaAndroid opened this issue Apr 12, 2021 · 0 comments · Fixed by #940

Comments

@hhaAndroid
Copy link
Contributor

Cannot add bias attribute in https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/deform_conv.py#L237, Because the judgment condition of xx_init initialization logic is:

if hasattr(module, 'bias') and module.bias is not None:

if module.bias=False, the above code will report an error:

AttributeError: 'bool' object has no attribute 'fill_'

and please fix docstring https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/deform_conv.py#L203

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

Successfully merging a pull request may close this issue.

1 participant