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

incorrect keywords: memory_format #9

Open
jin-s13 opened this issue Aug 10, 2020 · 2 comments
Open

incorrect keywords: memory_format #9

jin-s13 opened this issue Aug 10, 2020 · 2 comments

Comments

@jin-s13
Copy link

jin-s13 commented Aug 10, 2020

I tried to use Adam_GC, but got the errors.

Pytorch version: 1.3.0

  File "Adam.py", line 82, in step
    state['exp_avg'] = torch.zeros_like(p, memory_format=torch.preserve_format)
TypeError: zeros_like() received an invalid combination of arguments - got (Parameter, memory_format=torch.memory_format), but expected one of:
 * (Tensor input, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
 * (Tensor input, bool requires_grad)
      didn't match because some of the keywords were incorrect: memory_format
@jin-s13
Copy link
Author

jin-s13 commented Aug 10, 2020

Can I just delete the memory_format ?

@Yonghongwei
Copy link
Owner

yes. Or you can update the Pytorch version.

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