Browse Source

!1315 Add missing Errorcode to docs

From: @fan-jibin
Reviewed-by: @yelihua,@liuchongming74
Signed-off-by: @liuchongming74
pull/1315/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
32395b1ae6
2 changed files with 6 additions and 2 deletions
  1. +4
    -2
      mindinsight/mindconverter/docs/error_code_definition.md
  2. +2
    -0
      mindinsight/mindconverter/docs/error_code_definition_cn.md

+ 4
- 2
mindinsight/mindconverter/docs/error_code_definition.md View File

@@ -8,6 +8,7 @@
| 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/`) | | 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/`) |
| UnKnownModelError | Fail to recognize model format | 0000001 | Generally, the given TensorFlow model or PyTorch model doesn't observe the standard | | UnKnownModelError | Fail to recognize model format | 0000001 | Generally, the given TensorFlow model or PyTorch model doesn't observe the standard |
| ParamMissingError | Fail to get required conversion params | 0000002 | Mainly caused by missing `--shape`, `--input_nodes`, `--output_nodes` | | ParamMissingError | Fail to get required conversion params | 0000002 | Mainly caused by missing `--shape`, `--input_nodes`, `--output_nodes` |
| BadParamError | Fail to get correct conversion params | 0000003 | Mainly caused by error `--shape`, `--input_nodes`, `--output_nodes` |
| GraphInitFailError | Fail to trace the computational graph | 1000000 | Exception caused by 1000001~1000003 | | GraphInitFailError | Fail to trace the computational graph | 1000000 | Exception caused by 1000001~1000003 |
| 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 | | 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 |
| TfRuntimeError | Fail to initialize the TF runtime | 1000002 | Resources required by TensorFlow are not available | | TfRuntimeError | Fail to initialize the TF runtime | 1000002 | Resources required by TensorFlow are not available |
@@ -16,8 +17,9 @@
| NodeInputTypeNotSupportError | Fail to recognize the input type of converted operator | 2000001 | Wrong input type set in mapper | | NodeInputTypeNotSupportError | Fail to recognize the input type of converted operator | 2000001 | Wrong input type set in mapper |
| ScriptGenerationError | Fail to generate converted script | 2000002 | No left space on hard disk; Converted code is not legal; A file with the same name already exists in `--output` | | ScriptGenerationError | Fail to generate converted script | 2000002 | No left space on hard disk; Converted code is not legal; A file with the same name already exists in `--output` |
| ReportGenerationError | Fail to generate converted script | 2000003 | No left space on hard disk; No available operator to be converted;A file with the same name already exists in `--report` | | ReportGenerationError | Fail to generate converted script | 2000003 | No left space on hard disk; No available operator to be converted;A file with the same name already exists in `--report` |
| CheckPointGenerationError | Fail to generate converted weight file | 2000004 | No left space on hard dist; A file with the same name already exists in `--output` |
| WeightMapGenerationError | Fail to generate weight map file | 2000005 | No left space on hard dist; A file with the same name already exists in `--output` |
| CheckPointGenerationError | Fail to generate converted weight file | 2000004 | No left space on hard disk; A file with the same name already exists in `--output` |
| WeightMapGenerationError | Fail to generate weight map file | 2000005 | No left space on hard disk; A file with the same name already exists in `--output` |
| OnnxModelSaveError | Fail to save model | 2000006 | No left space on hard disk; No permission |
| GeneratorError | Fail to generate code | 3000000 | Exception caused by 3000001~3000004 | | GeneratorError | Fail to generate code | 3000000 | Exception caused by 3000001~3000004 |
| NodeLoadingError | Fail to load node information | 3000001 | Essential parameters are missing after conversion of a node | | NodeLoadingError | Fail to load node information | 3000001 | Essential parameters are missing after conversion of a node |
| NodeArgsTranslationError | Fail to translate the node's argument | 3000002 | Converted nodes have incorrect and conflicted information | | NodeArgsTranslationError | Fail to translate the node's argument | 3000002 | Converted nodes have incorrect and conflicted information |


+ 2
- 0
mindinsight/mindconverter/docs/error_code_definition_cn.md View File

@@ -8,6 +8,7 @@
| BaseConverterError | 未知错误引起的转换失败 | 0000000 | 程序运行中出现未知错误,请打开MindInsight log文件(默认位于`~/mindinsight/log/mindconverter/`目录下)查看具体错误原因 | | BaseConverterError | 未知错误引起的转换失败 | 0000000 | 程序运行中出现未知错误,请打开MindInsight log文件(默认位于`~/mindinsight/log/mindconverter/`目录下)查看具体错误原因 |
| UnKnownModelError | 识别网络模型对应的框架失败 | 0000001 | 通常为用户给定模型文件不符合TensorFlow或PyTorch标准 | | UnKnownModelError | 识别网络模型对应的框架失败 | 0000001 | 通常为用户给定模型文件不符合TensorFlow或PyTorch标准 |
| ParamMissingError | 缺少转换所需参数 | 0000002 | 通常为`--shape`, `--input_nodes` , `--output_nodes`缺失导致 | | ParamMissingError | 缺少转换所需参数 | 0000002 | 通常为`--shape`, `--input_nodes` , `--output_nodes`缺失导致 |
| BadParamError | 转换参数错误 | 0000003 | 通常为`--shape`, `--input_nodes` , `--output_nodes`错误导致 |
| GraphInitFailError | 依据网络模型构建计算图失败 | 1000000 | 由1000001,1000002,1000003导致的计算图无法解析 | | GraphInitFailError | 依据网络模型构建计算图失败 | 1000000 | 由1000001,1000002,1000003导致的计算图无法解析 |
| ModelLoadingError | 模型加载失败 | 1000001 | 给定的`--input_nodes`, `--output_nodes`, `--shape`与实际模型不符;<br />或模型文件存在问题导致模型无法加载 | | ModelLoadingError | 模型加载失败 | 1000001 | 给定的`--input_nodes`, `--output_nodes`, `--shape`与实际模型不符;<br />或模型文件存在问题导致模型无法加载 |
| TfRuntimeError | TensorFlow库执行出错 | 1000002 | TensorFlow启动申请所需资源失败导致无法正常启动,<br />请检查系统资源(进程数、内存、显存占用、CPU占用)是否充足 | | TfRuntimeError | TensorFlow库执行出错 | 1000002 | TensorFlow启动申请所需资源失败导致无法正常启动,<br />请检查系统资源(进程数、内存、显存占用、CPU占用)是否充足 |
@@ -18,6 +19,7 @@
| ReportGenerationError | 转换报告生成失败 | 2000003 | 空间不足;脚本中没有需要转换的算子;`--report`目录下已有同名文件存在 | | ReportGenerationError | 转换报告生成失败 | 2000003 | 空间不足;脚本中没有需要转换的算子;`--report`目录下已有同名文件存在 |
| CheckPointGenerationError | 转换权重生成失败 | 2000004 | 空间不足;`--output`目录下已有同名文件存在 | | CheckPointGenerationError | 转换权重生成失败 | 2000004 | 空间不足;`--output`目录下已有同名文件存在 |
| WeightMapGenerationError | 权重映射表生成失败 | 2000005 | 空间不足;`--output`目录下已有同名文件存在 | | WeightMapGenerationError | 权重映射表生成失败 | 2000005 | 空间不足;`--output`目录下已有同名文件存在 |
| OnnxModelSaveError | 模型保存失败 | 2000006 | 空间不足;用户权限不足 |
| GeneratorError | 代码生成失败 | 3000000 |由3000001至3000004引发的代码生成模块错误 | | GeneratorError | 代码生成失败 | 3000000 |由3000001至3000004引发的代码生成模块错误 |
| NodeLoadingError | 节点读取失败 | 3000001 |转换后的节点缺少必要参数 | | NodeLoadingError | 节点读取失败 | 3000001 |转换后的节点缺少必要参数 |
| NodeArgsTranslationError | 节点参数转换失败 | 3000002 |转换后的节点参数信息不正确 | | NodeArgsTranslationError | 节点参数转换失败 | 3000002 |转换后的节点参数信息不正确 |


Loading…
Cancel
Save