Errors when testing on CPU
See original GitHub issuelayer_name: <class 'torch.nn.modules.conv.Conv2d'>, total_params: 15121584, total_traina_params: 15121584, n_layers: 39
device: cpu
Traceback (most recent call last):
File "main.py", line 208, in <module>
test(epoch)
File "main.py", line 189, in test
outputs = net(inputs)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/brcao/Repos/pytorch-cifar/models/dla_simple.py", line 106, in forward
out = self.base(x)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 423, in forward
return self._conv_forward(input, self.weight)
File "/home/brcao/Apps/anaconda3/envs/yolo/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 419, in _conv_forward
return F.conv2d(input, weight, self.bias, self.stride,
RuntimeError: Expected object of device type cuda but got device type cpu for argument #1 'self' in call to _thnn_conv2d_forward
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
How to test a computer motherboard and CPU for failures
The first thing to do is a visual check of the motherboard. A common cause of motherboard issues or failure is bulged or...
Read more >How to Test a CPU - Techwalla
A faulty CPU can cause error messages in the testing program, or cause the computer to crash or reboot while testing. If you...
Read more >How to Identify Which Hardware Component is Failing in Your ...
Blue Screen 101: Search for the Error Message · Check Hard Drive SMART Status · Test Your RAM · Check Heat Levels ·...
Read more >Troubleshooting Memory Errors - MemTest86
Please be aware that not all errors reported by MemTest86 are due to bad memory. The test implicitly tests the CPU, L1 and...
Read more >Motherboard or cpu error, how can I test them?
- you need to check all of your fans and confirm they spin up, and are not slowed or clogged by dust (overheating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Phillibob55 Sounds good. If you would like to create an easy-to-use repo that we can just change some arguments to train and test many different models, I am happy to contribute in my spare time. I have forked you repo to https://github.com/bryanbocao/image-classification
I’ve created a repo for it here