pythonjupyter-notebooknlpmachine-translation

How to fix ".cuda()" showing error in google colab


enter image description here

Here, "model = model.cuda()"


Solution

  • You need to choose gpu.

    from Runtime -> change runtime type and select GPU as accelerator