https://medium.com/@manangupta9901/debugging-a-tricky-cuda-error-in-pytorch-device-side-asserts-during-model-transfer-d2f81e6f57f5