When I train my model, there is always some time that each epoch will cost much time (longer than 5 mins), and another period only 4 seconds.
I’m sure the running environment doesn’t change, is there any reason that will cause this phenomenon?

time cost.png467×528 6.19 KB
 
Any suggestion would be appreciated!