pytorch/torch/csrc/onnx
BowenBao 20ae19aa1d [ONNX] Improve diagnostic message formatting (#87830)
* Reflect required arguments in method signature for each diagnostic rule. Previous design accepts arbitrary sized tuple which is hard to use and prone to error.
     ![image](https://user-images.githubusercontent.com/9376104/200381982-d1e905f0-a159-4ef5-8d2e-070524e8f5bf.png)
* Removed `DiagnosticTool` to keep things compact.
* Removed specifying supported rule set for tool(context) and checking if rule of reported diagnostic falls inside the set, to keep things compact.
* Initial overview markdown file.
* Change `full_description` definition. Now `text` field should not be empty. And its markdown should be stored in `markdown` field.
* Change `message_default_template` to allow only named fields (excluding numeric fields). `field_name` provides clarity on what argument is expected.
* Added `diagnose` api to `torch.onnx._internal.diagnostics`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/87830
Approved by: https://github.com/abock
2022-11-10 21:42:17 +00:00
..
diagnostics [ONNX] Improve diagnostic message formatting (#87830) 2022-11-10 21:42:17 +00:00
init.cpp [ONNX][Reland] Export node and value with scope name (#82040) 2022-08-29 20:10:38 +00:00
init.h [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
onnx.h [ONNX][Reland] Export node and value with scope name (#82040) 2022-08-29 20:10:38 +00:00