onnx2pytorch
onnx2pytorch copied to clipboard
Debug mode modifies the ONNX protobuf, changing behavior of forward pass
The behavior of the forward pass may change when debug=True because debug mode has the side effect of modifying the ONNX protobuf. This causes a problem in particular when a model has multiple outputs: the forward pass will only return the first output. The other output nodes get consumed and are not returned.
Is this still the case after your refactoring of the code?