Hi
So I’m bit of confused; because my main plan is to make neural network NN(X1,X2); (where X2 is a scalar, and X1 is a vector. and the output of NN(X1,X2) could be any dimension. ) to be monotonic non-decreasing w.r.t. X2; that it to say NN(X1,X2+ epsilon) >= NN(X1,X2) for any epsilon > 0 for all output dimension. That’s why I’m restricting its derivative to be non-negative. However, this seems doesn’t gonna work in pytorch ?