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

train from resume epochs #20

Open
fish8sank opened this issue Feb 26, 2019 · 4 comments
Open

train from resume epochs #20

fish8sank opened this issue Feb 26, 2019 · 4 comments

Comments

@fish8sank
Copy link

optimizer.step()
File "/home/z/anaconda3/envs/py3/lib/python3.6/site-packages/torch/optim/sgd.py", line 101, in step
buf.mul_(momentum).add_(1 - dampening, d_p)
RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'other'

something wrong?

@Jambalaya11
Copy link

I met the same problem with you, do you solve the problem yet?

1 similar comment
@zugexiaodui
Copy link

I met the same problem with you, do you solve the problem yet?

@JinXiaozhao
Copy link

I met the same problem with you, do you solve the problem yet? @fish8sank @Jambalaya11 @zugexiaodui @jfzhang95

@zugexiaodui
Copy link

I have forgotten how I solved the problem. Maybe it's due to different versions of pytorch.

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

4 participants