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

module 'torch' has no attribute 'var_mean' #9

Open
longmao-yiran opened this issue May 26, 2020 · 1 comment
Open

module 'torch' has no attribute 'var_mean' #9

longmao-yiran opened this issue May 26, 2020 · 1 comment

Comments

@longmao-yiran
Copy link

I have got the AttributeError called "module 'torch' has no attribute 'var_mean'" when i run the code
I search the Docs in pytorch find var_mean can be used lasters at least 1.2.0
I think you need to change the

to 1.2.0

@longmao-yiran
Copy link
Author

longmao-yiran commented May 26, 2020

It`s alse can change

v, m = torch.var_mean(w, dim=[1, 2, 3], keepdim=True, unbiased=False)

to
v = torch.var(w, dim=[1, 2, 3], keepdim=True, unbiased=False)
m = torch.mean(w, dim=[1, 2, 3], keepdim=True)

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

1 participant