How to log path of sample in each iteration?
**Describe the bug**

I trained SpeakerNet model but got loss **inf** in one iteration, and the next iteration got loss is **nan**

So i want to log path of samples in each iteration and loss corresponding to that iteration to debug.

Is there any way config trainer log to do that? 

