This error was happening arbitrarily till yesterday. Most of my attempts today have failed though. No change to source code during this time.
Re small snippet, not sure what to share with you as I am not sure where this is emerging from yet. Sometimes it happens when I do model.cuda() if torch.cuda.is_available() else model.cpu(), some times from other places.