I will try and confirm here if it works. First I wanted to make sure it was theoretically possible to put weights on the Loss function and the model will still keep track and update those weight during the backward step.