RuntimeError: CUDA error: device-side assert triggered

You are having this problem while doing semantic image segmentation using PyTorch? Here is the solution that worked for me.

Downloaded from Pexels

Introduction