You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

error_code_definition.md 4.5 kB

1234567891011121314151617181920212223242526272829
  1. # MindConverter Error Code Definition
  2. [查看中文](./error_code_definition_cn.md)
  3. | Exception definition | Error description | Error code | Common causes |
  4. | :--------------------------: | :----------------------------------------------------: | :------- | ------------------------------------------------------------ |
  5. | MindConverterException | MindConverter base error | NAN | MindConverter base error |
  6. | BaseConverterError | Fail to convert because of unknown error | 0000000 | Unknown error occurred during runtime, please see the detail in MindInsight log file (default path is `~/mindinsight/log/mindconverter/`) |
  7. | UnKnownModelError | Fail to recognize model format | 0000001 | Generally, the given TensorFlow model or PyTorch model doesn't observe the standard |
  8. | ParamMissingError | Fail to get required conversion params | 0000002 | Mainly caused by missing `--shape`, `--input_nodes`, `--output_nodes` |
  9. | GraphInitFailError | Fail to trace the computational graph | 1000000 | Exception caused by 1000001~1000003 |
  10. | ModelLoadingError | Fail to load the model | 1000001 | Given `--input_nodes`, `--output_nodes`, `--shape` don't match the input model; Meanwhile, the model file can not be loaded also can cause this error |
  11. | TfRuntimeError | Fail to initialize the TF runtime | 1000002 | Resources required by TensorFlow are not available |
  12. | RuntimeIntegrityError | Fail to locate required third party dependency | 1000003 | Caused by required third party packages are not installed |
  13. | TreeCreateFailError | Fail to create code hierarchical tree | 2000000 | Mainly caused by usage of `torch.nn.functional.xxx`, `torch.xxx`, `torch.Tensor.xxx` in PyTorch |
  14. | NodeInputMissingError | Fail to get the input node info | 2000001 | Fail to get input node info |
  15. | TreeNodeInsertError | Fail to insert tree node | 2000002 | Mainly caused by wrong scope name |
  16. | SourceFilesSaveError | Fail to generate or save converted script | 3000000 | Exception caused by 3000001~3000005 |
  17. | NodeInputTypeNotSupportError | Fail to recognize the input type of converted operator | 3000001 | Wrong input type set in mapper |
  18. | ScriptGenerationError | Fail to generate converted script | 3000002 | No left space on hard disk; Converted code is not legal; A file with the same name already exists in `--output` |
  19. | ReportGenerationError | Fail to generate converted script | 3000003 | No left space on hard disk; No available operator to be converted;A file with the same name already exists in `--report` |
  20. | CheckPointGenerationError | Fail to generate converted weight file | 3000004 | No left space on hard dist; A file with the same name already exists in `--output` |
  21. | WeightMapGenerationError | Fail to generate weight map file | 3000005 | No left space on hard dist; A file with the same name already exists in `--output` |
  22. | GeneratorError | Fail to generate code | 4000000 | Exception caused by 4000001~4000004 |
  23. | NodeLoadingError | Fail to load node information | 4000001 | Essential parameters are missing after conversion of a node |
  24. | NodeArgsTranslationError | Fail to translate the node's argument | 4000002 | Converted nodes have incorrect and conflicted information |
  25. | ModuleBuildError | Fail to build module instance | 4000003 | Converted nodes have incorrect and conflicted information with module |
  26. | CodeGenerationError | Fail to generate the code statement | 4000004 | Converted nodes have inconsistent information |
  27. | SubGraphSearchingError | Fail to find frequent sub-graph | 5000000 | Generally, caused by IR graph topological order error |