Python Forum
[PyTorch] no CUDA-capable device is detected
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyTorch] no CUDA-capable device is detected
#1
I use PyTorch for machine learning. I am doing all this in Google Colab.

(best_val_loss,
 best_sentence_level_model) = train_eval_loop(sentence_level_model,
                                              train_dataset,
                                              test_dataset,
                                              F.cross_entropy,
                                              lr=5e-3,
                                              epoch_n=10,
                                              batch_size=64,
                                              device='cuda',
                                              early_stopping_patience=5,
                                              max_batches_per_epoch_train=500,
                                              max_batches_per_epoch_val=100)


I use 'cuda' for training, but here is a problem:

RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:50
did somebody meet this issue? how did you solve it?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PyTorch for beginners OmegaRed94 1 1,058 Jun-09-2022, 09:20 PM
Last Post: Larz60+
  paragraphs in textfile not detected G_rizzle 3 1,882 Dec-13-2021, 08:08 AM
Last Post: buran
  PyTorch GTX 770 OLD ? samuelbachorik 0 1,901 Jan-24-2021, 05:42 PM
Last Post: samuelbachorik
  Why Cuda from numba package is unavailable? AlekseyPython 2 2,388 Nov-10-2020, 08:03 AM
Last Post: AlekseyPython
  Free ebook "Deep Learning with PyTorch" ThomasL 0 2,311 Nov-22-2019, 02:50 PM
Last Post: ThomasL
  cuda gmp manish1m97 2 2,844 Jul-31-2019, 04:13 AM
Last Post: scidam
  Saving PyTorch model kiton 3 4,168 Nov-24-2018, 01:38 AM
Last Post: kiton

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020