https://github.com/Waffle-Liu/STRODE/blob/47c96f5bd6416b2b691baf79ef4a54369b64e26b/rotatingMNIST/model.py#LL250C1-L250C38 ``` first_item = solutions[-1] # Gm_eps = torch.abs(solutions[-2]-solutions[-1]) Gm_eps = solutions[-2]-solutions[-1] second_item = Gm_eps loss = first_item+second_item ```
https://github.com/Waffle-Liu/STRODE/blob/47c96f5bd6416b2b691baf79ef4a54369b64e26b/rotatingMNIST/model.py#LL250C1-L250C38