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

error about "class DistributionUncertainty(nn.Module)" #9

Open
Axkgag opened this issue Feb 27, 2023 · 1 comment
Open

error about "class DistributionUncertainty(nn.Module)" #9

Axkgag opened this issue Feb 27, 2023 · 1 comment

Comments

@Axkgag
Copy link

Axkgag commented Feb 27, 2023

self.pertubration0 = pertubration(dim=64, p=uncertainty) if pertubration else nn.Identity()
TypeError: init() got an unexpected keyword argument 'dim'

I would like to ask, why do I get this error message when initializing the DSU module?

@hilinxinhui
Copy link

you can refer to multi-domain-generalization/dassl/modeling/backbone/uresnet.py

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