'Vector Jacobian Product (VJP) of Broadcastable Addition operation

I have two arrays that x_arr shape is (4, 3, 1) and y_arr shape is (5,). I did broadcastable addition with these arrays (z_arr = x_arr + y_arr) and I obtained z_arr shape is (4, 3, 5). Now I must calculate vjp ( vector jacobian product) of x_arr and y_arr. How can I calculate vjp of each array? Please help me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source