But what I want to do is sequential learning. I want my network first learn classes [0,1]. Then learn classes [3,4] on the same network and test the classes [1,2] to check the catastrophic forgetting problem. The nll_function will not work on the classes [3,4].