Is there a nice way to add custom weights to instances? So far, I’ve been weighting the losses directly after computing them via criterion(outputs, labels).
However, if possible, I’d like to weight each instance before the training.