pytorch
3d32dec5 - [ONNX] Deprecate enable_onnx_checker argument in torch.onnx.export() (#61708) (#64369)

Commit
3 years ago
[ONNX] Deprecate enable_onnx_checker argument in torch.onnx.export() (#61708) (#64369) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64369 As of now, the "enable_onnx_checker" parameter was described as below: enable_onnx_checker (bool, default True): If True the ONNX model checker will be run to ensure the exported model is a valid ONNX model. An invalid ONNX graph is useless to users so such checker should be done for each call. In this PR, we will still write the model to an ONNX file even it is invalid. And the exception will be thrown after the ONNX file has been created. This enables user output an invalid ONNX graph for debug. This PR will still keep it in torch.onnx.export() function for backward support while all backend logic has been changed to work as enable_onnx_checker is set to True. Test Plan: Imported from OSS Reviewed By: ezyang Differential Revision: D30905267 Pulled By: malfet fbshipit-source-id: 3ad3f68e77fcec012cc7ef674cc9a61755eebc9e Co-authored-by: fatcat-z <zhang-ji@outlook.com>
Author
Parents
Loading