Is there any paper or any existing models tries to train weights for weighted sum like this?

Hi
I know it’s possible to train weights for weighted sum
for example,
image
like this.

But i’m wondering
Is there any paper or any existing models
tries to train weights for weighted sum like this?

please let me know
Thanks

There is this nn module in PyTorch that does a linear interpolation of two tensors.
And probably there is a use case for it.