I avoided CUDA out of memoy issue by inserting torch.cuda.empty_cache() at end of one batch processing. However, I have one question regarding its behaviour (my question may seem a bit naive since I am new to pytorch), if I delete the model instance from the GPU instead of previous batch tensor after end of one batch processing, how’s it going to affect my model’s training? Does ‘model’ object holds onto some important information regarding model’s state or weights?