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

torch.nn.modules.module.ModuleAttributeError: 'Hardswish' object has no attribute 'inplace' #1939

Closed
lucasjinreal opened this issue Jan 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lucasjinreal
Copy link

torch.nn.modules.module.ModuleAttributeError: 'Hardswish' object has no attribute 'inplace'

@StuLiu
Copy link

StuLiu commented Oct 14, 2021

open ~/.local/lib/python3.8/site-packages/torch/nn/modules/activation.py
'return F.hardswish(input, self.inplace)' replace with 'return F.hardswish(input)'
————————————————
版权声明:本文为CSDN博主「Qslia」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_28321119/article/details/114405292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants