Solved by albanD in post #2 
              
              
                Hi, 
I think the best way to see what happens here is to write the Jacobian of your function and see what happens when you do the vector jacobian product (backward pass). 
For your sin function, it just applies the sin element-wise to the input. So the Jacobian matrix is a diagonal matrix with on ea…