A set of weights for each sample?
If you are giving a set of weights for each sample in a batch, then what is the point of generalizing?
I mean you could always just set your batch size to one but I doubt the model will perform well at inference.