onnx2pytorch icon indicating copy to clipboard operation
onnx2pytorch copied to clipboard

Debug mode modifies the ONNX protobuf, changing behavior of forward pass

Open calvinmccarter-at-lightmatter opened this issue 4 years ago • 1 comments

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?

Talmaj avatar Nov 10 '21 15:11 Talmaj