The only argument which could potentially be optimized would be the weight argument, as the others are optional arguments to change the internal reduction.
However, I’m unsure how valuable it would be to optimize the weight, as e.g. a zero weight would create a “perfect” but potentially useless loss value of 0, so your model might be able to cheat through optimizing it. In any case, since I’m not familiar with your use case, it could still be valid if you make sure the aforementioned issue cannot happen.