@ptrblck I made it to the current format as mentioned by you.
THe code can be found here: https://paste.debian.net/1090245/ 3
Since I am in a CPU device, I am thrown the following error:
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location='cpu' to map your storages to the CPU.