Thanks for the response. Can you provide some exemplary code to achieve “in even epoch cycles, you could copy the part of the batch you want and delete from memory the other parts before you start any computation”?  I never manually handled memory before.