Error while importing torch

Hi, I made changes to dataloader.py and worker.py files to add some logging and time_perf analysis. Since then, I’m getting the below error.

I have not changed any other files and have not broken any code.

I think there is a circular import error but unable to figure out what exactly the issue is. I don’t want to update/re-install pytorch again as it takes lot of time to setup again.

Please help me !! Thanks !

PS:
PyTorch is installed in Nvidia Jetson Orin

Could you describe what exactly you have changed, which caused this ImportError?

1 Like

No worries, I was able to debug it