3

I'm running my Jupyter Notebook using Pytorch on Google Colab. After I received the 'Cuda assert fails: device-side assert triggered' I am unable to run any other code that uses my pytorch module. Does anyone know how to reset my code so that my Pytorch functions that were working before can still run?

I've already tried implementing CUDA_LAUNCH_BLOCKING=1but my code still doesn't work as the Assert is still triggered!

1
  • also by google colab I mean google collaboratory ! Commented Mar 9, 2019 at 1:11

1 Answer 1

11

You need to reset the Colab notebook. To run existing Pytorch modules that used to work before, you have to do the following:

  • Go to 'Runtime' in the tool bar
  • Click 'Restart and Run all'

This will reset your CUDA assert and flush out the module so that you can have another shot at avoiding the error!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.