spectre-defense
spectre-defense copied to clipboard
Fix batch loss normalization in mini_train
The normalization of the loss in mini_train is slightly off if the batch does not have size batch_size, which can be the case when drop_last is false.