question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm)

See original GitHub issue

Similar to #453, but training NBEATS() with a val_series, I am getting:

RuntimeError: Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JulianNyarkocommented, Sep 26, 2021

Hm, no, that’s not it… But I’ll try to do a fresh install of darts tomorrow. Hopefully, that’ll fix it!

0reactions
hrzncommented, Sep 27, 2021

Great 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensor for argument #2 'mat1' is on CPU, but expected it to be ...
It seems some of my variables should be defined in another way to be able to be executed on GPU. My questions: How...
Read more >
Debugging Runtime Error: Tensor for argument #2 'mat1' is on ...
Debugging Runtime Error: Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm)....
Read more >
Tensor for argument #2 'mat1' is on CPU, but expected it to be ...
RuntimeError : Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm) #90....
Read more >
Tensor for argument #2 'mat1' is on CPU, but expected it to be ...
Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm). 需要将模型和输入数据都移动到 ...
Read more >
runtimeerror: expected all tensors to be on the same device ...
Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found