Hi, I would like to know how to write in pytorch and train a neural network that has a module that is explicitly non-diferentiable, for example a module/code written in another language that I cannot re-write into python (a black box function). In that case, I imagine that the derivatives have to be calculated using finites differences. Could I define this function in a way pytorch can use it? Thanks very much!