Linear combinations of Zygote.Grads

Here is a question I posted on Stack Overflow, but I thought it would be good to post it here also. Thank you in advance for your help!