How about a custom loss function so you have something like loss=y1^2 -y2 for the two outputs? You can use PyTorch and optimize directly for the inputs.
How about a custom loss function so you have something like loss=y1^2 -y2 for the two outputs? You can use PyTorch and optimize directly for the inputs.