Skip to content

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

Description

@lucasjinreal

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

Activity

StuLiu commented on Oct 14, 2021

@StuLiu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions