I have a network with input X of size of m x 2 and output Y of size m x 1. How would I be able to generate elementwise derivative of output with respect to input? i.e. a matrix of size dX of size m x 2
where dX_i,1 = dY_i / dX_i,1 and dX_i,2 = dY_i / dX_i,2 .
Thanks,