Dealing with imbalanced datasets in pytorch

I am using Adam so it should not make much difference :confused: