mindstudio-probe 1.1.1__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/MANIFEST.in +1 -0
  2. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/PKG-INFO +3 -2
  3. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/PKG-INFO +3 -2
  4. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/SOURCES.txt +60 -5
  5. mindstudio_probe-1.2.1/msprobe/CMakeLists.txt +5 -0
  6. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/README.md +14 -19
  7. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/config.json +1 -0
  8. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/const.py +155 -6
  9. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/exceptions.py +3 -1
  10. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/file_utils.py +33 -7
  11. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/inplace_ops.yaml +3 -0
  12. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/utils.py +28 -14
  13. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common_config.py +6 -0
  14. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/acc_compare.py +139 -128
  15. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/check.py +31 -29
  16. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/compare_cli.py +17 -16
  17. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/highlight.py +186 -99
  18. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/layer_mapping/data_scope_parser.py +18 -7
  19. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/layer_mapping/layer_mapping.py +21 -14
  20. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/layer_mapping/postprocess_pass.py +4 -3
  21. mindstudio_probe-1.2.1/msprobe/core/compare/merge_result/merge_result.py +380 -0
  22. mindstudio_probe-1.2.1/msprobe/core/compare/merge_result/merge_result_cli.py +31 -0
  23. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/multiprocessing_compute.py +2 -2
  24. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/npy_compare.py +109 -147
  25. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/utils.py +189 -69
  26. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/data_collector.py +51 -21
  27. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/data_processor/base.py +38 -20
  28. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/data_processor/factory.py +5 -3
  29. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/data_processor/mindspore_processor.py +154 -20
  30. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/data_processor/pytorch_processor.py +118 -58
  31. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/json_writer.py +29 -1
  32. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/data_dump/scope.py +19 -18
  33. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/abnormal_scene.py +9 -5
  34. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/checker.py +1 -1
  35. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/utils.py +1 -1
  36. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/01.installation.md +96 -17
  37. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/02.config_introduction.md +5 -5
  38. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/05.data_dump_PyTorch.md +91 -61
  39. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/06.data_dump_MindSpore.md +57 -19
  40. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/07.accuracy_checker_PyTorch.md +18 -18
  41. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/09.accuracy_checker_MindSpore.md +4 -4
  42. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/10.accuracy_compare_PyTorch.md +99 -41
  43. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/11.accuracy_compare_MindSpore.md +249 -48
  44. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/12.overflow_check_PyTorch.md +1 -1
  45. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/19.monitor.md +120 -27
  46. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/21.visualization_PyTorch.md +115 -35
  47. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/22.visualization_MindSpore.md +138 -41
  48. mindstudio_probe-1.2.1/msprobe/docs/23.generate_operator_PyTorch.md +107 -0
  49. mindstudio_probe-1.2.1/msprobe/docs/24.code_mapping_Mindspore.md +28 -0
  50. mindstudio_probe-1.1.1/msprobe/docs/23.tool_function_introduction.md → mindstudio_probe-1.2.1/msprobe/docs/25.tool_function_introduction.md +1 -0
  51. mindstudio_probe-1.2.1/msprobe/docs/26.data_dump_PyTorch_baseline.md +37 -0
  52. mindstudio_probe-1.2.1/msprobe/docs/27.dump_json_instruction.md +521 -0
  53. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/FAQ.md +26 -2
  54. mindstudio_probe-1.2.1/msprobe/docs/accuracy_checker_MindSpore/accuracy_checker_MindSpore_baseline.md +14 -0
  55. mindstudio_probe-1.2.1/msprobe/docs/data_dump_MindSpore/data_dump_MindSpore_baseline.md +22 -0
  56. mindstudio_probe-1.2.1/msprobe/docs/img/merge_result.png +0 -0
  57. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/fuzzy_match_ms.png +0 -0
  58. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/fuzzy_match_pt.png +0 -0
  59. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/tensorboard_1.png +0 -0
  60. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/tensorboard_2.png +0 -0
  61. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_browser_1.png +0 -0
  62. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_browser_2.png +0 -0
  63. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_precision_info.png +0 -0
  64. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_search_info.png +0 -0
  65. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_show_info.png +0 -0
  66. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_showcase.png +0 -0
  67. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_unmatch_info.png +0 -0
  68. mindstudio_probe-1.2.1/msprobe/docs/visualization/GPTModel.png +0 -0
  69. mindstudio_probe-1.2.1/msprobe/docs/visualization/ParallelMLP.png +0 -0
  70. mindstudio_probe-1.2.1/msprobe/docs/visualization/layer_mapping_example.md +132 -0
  71. mindstudio_probe-1.2.1/msprobe/docs/visualization/mapping.png +0 -0
  72. mindstudio_probe-1.2.1/msprobe/docs/visualization/mapping1.png +0 -0
  73. mindstudio_probe-1.2.1/msprobe/docs/visualization/module_name.png +0 -0
  74. mindstudio_probe-1.2.1/msprobe/docs/visualization/module_name1.png +0 -0
  75. mindstudio_probe-1.2.1/msprobe/docs/visualization/no_mapping.png +0 -0
  76. mindstudio_probe-1.2.1/msprobe/docs/visualization/no_mapping1.png +0 -0
  77. mindstudio_probe-1.2.1/msprobe/docs/visualization/no_mapping_analyze.png +0 -0
  78. mindstudio_probe-1.2.1/msprobe/docs/visualization/top_layer.png +0 -0
  79. mindstudio_probe-1.2.1/msprobe/mindspore/__init__.py +27 -0
  80. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/api_accuracy_checker.py +57 -25
  81. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/cmd_parser.py +2 -1
  82. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/compute_element.py +5 -7
  83. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/data_manager.py +37 -0
  84. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/main.py +1 -0
  85. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/multi_api_accuracy_checker.py +12 -6
  86. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/multi_data_manager.py +3 -1
  87. mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/bind.py +264 -0
  88. mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/cmd_parser.py +40 -0
  89. mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/graph.py +49 -0
  90. mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/graph_parser.py +226 -0
  91. mindstudio_probe-1.1.1/msprobe/mindspore/__init__.py → mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/main.py +9 -2
  92. mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping/processor.py +34 -0
  93. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/common/const.py +3 -1
  94. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/common/utils.py +50 -5
  95. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/compare/distributed_compare.py +0 -2
  96. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/compare/ms_compare.py +105 -63
  97. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/compare/ms_graph_compare.py +14 -5
  98. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/debugger/debugger_config.py +3 -0
  99. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/debugger/precision_debugger.py +81 -12
  100. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/hook_cell/api_registry.py +83 -16
  101. mindstudio_probe-1.2.1/msprobe/mindspore/dump/hook_cell/hook_cell.py +77 -0
  102. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/hook_cell/primitive_hooks.py +33 -15
  103. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml +11 -1
  104. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/hook_cell/wrap_api.py +92 -1
  105. mindstudio_probe-1.2.1/msprobe/mindspore/dump/kernel_dump/kernel_config.py +33 -0
  106. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/kernel_graph_dump.py +7 -0
  107. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/api_pynative_self_check.py +13 -4
  108. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/bit_noise.py +2 -2
  109. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/grad_analyzer.py +24 -12
  110. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/hook.py +13 -4
  111. mindstudio_probe-1.2.1/msprobe/mindspore/mindtorch/__init__.py +18 -0
  112. mindstudio_probe-1.2.1/msprobe/mindspore/mindtorch/mindtorch_adaptor.py +255 -0
  113. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/ms_config.py +5 -1
  114. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py +7 -0
  115. mindstudio_probe-1.2.1/msprobe/mindspore/service.py +469 -0
  116. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/msprobe.py +24 -3
  117. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/__init__.py +7 -6
  118. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/common/utils.py +31 -16
  119. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/algorithm.py +41 -8
  120. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py +100 -267
  121. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml +4 -1
  122. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/compare.py +69 -68
  123. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/compare_column.py +54 -0
  124. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/compare/compare_input.py +51 -0
  125. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py +2 -4
  126. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/generate_op_script/op_generator.py +54 -30
  127. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/absolute_threshold.py +106 -0
  128. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/accumulative_error_compare.py +107 -0
  129. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/base_standard.py +151 -0
  130. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/benchmark_compare.py +226 -0
  131. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/binary_consistency.py +68 -0
  132. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/standard_config.py +218 -0
  133. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/standard_register.py +104 -0
  134. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/thousandth_standard.py +63 -0
  135. mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/precision_standard/ulp_compare.py +200 -0
  136. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py +57 -1
  137. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py +2 -1
  138. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +42 -14
  139. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +64 -19
  140. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +34 -4
  141. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/device_dispatch.py +5 -3
  142. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/npu_fusion_attention.py +42 -10
  143. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/common/parse_json.py +2 -1
  144. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/common/utils.py +45 -2
  145. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/compare/distributed_compare.py +17 -29
  146. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/compare/pt_compare.py +40 -20
  147. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/debugger/debugger_config.py +27 -12
  148. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/debugger/precision_debugger.py +42 -12
  149. mindstudio_probe-1.2.1/msprobe/pytorch/dump/module_dump/module_dump.py +86 -0
  150. {mindstudio_probe-1.1.1/msprobe/pytorch → mindstudio_probe-1.2.1/msprobe/pytorch/dump/module_dump}/module_processer.py +80 -6
  151. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/common/params.py +2 -1
  152. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/common/utils.py +3 -0
  153. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/compare/grad_saver.py +0 -2
  154. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/result_handlers/base_handler.py +31 -47
  155. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py +0 -4
  156. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/__init__.py +1 -1
  157. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/hook_module.py +14 -11
  158. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/register_optimizer_hook.py +59 -0
  159. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/support_wrap_ops.yaml +34 -0
  160. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_distributed.py +6 -8
  161. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_functional.py +66 -0
  162. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/anomaly_analyse.py +1 -1
  163. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/anomaly_detect.py +107 -22
  164. mindstudio_probe-1.2.1/msprobe/pytorch/monitor/csv2tb.py +166 -0
  165. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/distributed/wrap_distributed.py +25 -14
  166. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/features.py +3 -3
  167. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/module_hook.py +483 -277
  168. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/module_metric.py +27 -48
  169. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/module_spec_verifier.py +3 -1
  170. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/optimizer_collect.py +52 -14
  171. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/unittest/test_monitor.py +24 -9
  172. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/utils.py +77 -6
  173. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/dispatch.py +8 -2
  174. mindstudio_probe-1.2.1/msprobe/pytorch/parse_tool/lib/__init__.py +0 -0
  175. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/compare.py +10 -10
  176. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/config.py +5 -7
  177. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/file_desc.py +15 -1
  178. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/interactive_cli.py +10 -10
  179. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/parse_exception.py +7 -7
  180. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/parse_tool.py +11 -10
  181. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/utils.py +18 -19
  182. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/lib/visualization.py +9 -10
  183. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/service.py +176 -106
  184. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/builder/graph_builder.py +62 -5
  185. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/builder/msprobe_adapter.py +24 -2
  186. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/compare/graph_comparator.py +64 -14
  187. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/compare/mode_adapter.py +1 -15
  188. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph/base_node.py +12 -17
  189. mindstudio_probe-1.2.1/msprobe/visualization/graph/distributed_analyzer.py +318 -0
  190. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph/graph.py +9 -0
  191. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph_service.py +97 -23
  192. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/utils.py +14 -29
  193. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/setup.py +45 -3
  194. mindstudio_probe-1.1.1/msprobe/mindspore/dump/hook_cell/hook_cell.py +0 -55
  195. mindstudio_probe-1.1.1/msprobe/mindspore/service.py +0 -303
  196. mindstudio_probe-1.1.1/msprobe/pytorch/functional/module_dump.py +0 -84
  197. mindstudio_probe-1.1.1/msprobe/pytorch/hook_module/wrap_functional.py +0 -106
  198. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/LICENSE +0 -0
  199. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/dependency_links.txt +0 -0
  200. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/entry_points.txt +0 -0
  201. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/not-zip-safe +0 -0
  202. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/requires.txt +0 -0
  203. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/mindstudio_probe.egg-info/top_level.txt +0 -0
  204. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/__init__.py +0 -0
  205. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/__init__.py +0 -0
  206. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/advisor/advisor.py +0 -0
  207. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/advisor/advisor_const.py +0 -0
  208. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/advisor/advisor_result.py +0 -0
  209. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/inplace_op_checker.py +0 -0
  210. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/common/log.py +0 -0
  211. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/compare/layer_mapping/__init__.py +0 -0
  212. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/grad_probe/__init__.py +0 -0
  213. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/grad_probe/constant.py +0 -0
  214. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/grad_probe/grad_compare.py +0 -0
  215. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/grad_probe/utils.py +0 -0
  216. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/api_info.py +0 -0
  217. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/filter.py +0 -0
  218. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/ignore_rules.yaml +0 -0
  219. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/core/overflow_check/level.py +0 -0
  220. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/03.config_examples.md +0 -0
  221. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/04.kernel_dump_PyTorch.md +0 -0
  222. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/08.accuracy_checker_online_PyTorch.md +0 -0
  223. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/13.overflow_check_MindSpore.md +0 -0
  224. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/14.data_parse_PyTorch.md +0 -0
  225. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/15.free_benchmarking_PyTorch.md +0 -0
  226. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/16.free_benchmarking_MindSpore.md +0 -0
  227. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/17.grad_probe.md +0 -0
  228. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/18.online_dispatch.md +0 -0
  229. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/20.monitor_performance_baseline.md +0 -0
  230. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/S02.report_free_benchmarking_validation_performance_baseline.md +0 -0
  231. {mindstudio_probe-1.1.1/msprobe/docs/data_dump_Mindspore → mindstudio_probe-1.2.1/msprobe/docs/data_dump_MindSpore}/dynamic_graph_quick_start_example.md +0 -0
  232. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/BLOOM-7B_1.png +0 -0
  233. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/BLOOM-7B_2.png +0 -0
  234. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/BLOOM-7B_3.png +0 -0
  235. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/BLOOM-7B_4.png +0 -0
  236. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_1.png +0 -0
  237. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_2.png +0 -0
  238. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_3.png +0 -0
  239. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_4.png +0 -0
  240. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_5.png +0 -0
  241. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_6.png +0 -0
  242. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_7.png +0 -0
  243. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/GPT-3_8.png +0 -0
  244. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/YOLOV5S_1.png +0 -0
  245. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/YOLOV5S_2.png +0 -0
  246. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/accuracy_checking_details.png +0 -0
  247. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/accuracy_checking_result.png +0 -0
  248. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/api_precision_compare_details.png +0 -0
  249. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/api_precision_compare_result.png +0 -0
  250. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/auto_analyze_log.png +0 -0
  251. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/compare_result.png +0 -0
  252. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/compare_result_pkl.png +0 -0
  253. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/compare_result_pkl_md5.png.png +0 -0
  254. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/cpu_info.png +0 -0
  255. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/free_benchmark.png +0 -0
  256. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/free_benchmark_framework.png +0 -0
  257. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/grad_probe_image-1.png +0 -0
  258. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/grad_probe_image-2.png +0 -0
  259. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/grad_probe_image-3.png +0 -0
  260. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/grad_probe_image-4.png +0 -0
  261. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/grad_probe_image.png +0 -0
  262. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/module_compare.png +0 -0
  263. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/monitor/cpu_info.png +0 -0
  264. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/ms_dump.png +0 -0
  265. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/ms_layer.png +0 -0
  266. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/docs/img/pt_dump.png +0 -0
  267. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/__init__.py +0 -0
  268. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/api_info.py +0 -0
  269. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/api_runner.py +0 -0
  270. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/base_compare_algorithm.py +0 -0
  271. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/checker_support_api.yaml +0 -0
  272. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/type_mapping.py +0 -0
  273. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/api_accuracy_checker/utils.py +0 -0
  274. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/cell_processor.py +0 -0
  275. {mindstudio_probe-1.1.1/msprobe/mindspore/debugger → mindstudio_probe-1.2.1/msprobe/mindspore/code_mapping}/__init__.py +0 -0
  276. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/common/log.py +0 -0
  277. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/compare/ms_to_pt_api.yaml +0 -0
  278. {mindstudio_probe-1.1.1/msprobe/mindspore/dump → mindstudio_probe-1.2.1/msprobe/mindspore/debugger}/__init__.py +0 -0
  279. {mindstudio_probe-1.1.1/msprobe/mindspore/free_benchmark → mindstudio_probe-1.2.1/msprobe/mindspore/dump}/__init__.py +0 -0
  280. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/dump_tool_factory.py +0 -0
  281. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/jit_dump.py +0 -0
  282. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dump/kernel_kbyk_dump.py +0 -0
  283. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dym_loader/hook_dynamic_loader.cc +0 -0
  284. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/dym_loader/hook_dynamic_loader.h +0 -0
  285. {mindstudio_probe-1.1.1/msprobe/mindspore/free_benchmark/common → mindstudio_probe-1.2.1/msprobe/mindspore/free_benchmark}/__init__.py +0 -0
  286. {mindstudio_probe-1.1.1/msprobe/mindspore/free_benchmark/handler → mindstudio_probe-1.2.1/msprobe/mindspore/free_benchmark/common}/__init__.py +0 -0
  287. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/common/config.py +0 -0
  288. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/common/handler_params.py +0 -0
  289. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/common/utils.py +0 -0
  290. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/data/support_wrap_ops.yaml +0 -0
  291. {mindstudio_probe-1.1.1/msprobe/mindspore/grad_probe → mindstudio_probe-1.2.1/msprobe/mindspore/free_benchmark/handler}/__init__.py +0 -0
  292. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/handler/base_handler.py +0 -0
  293. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/handler/check_handler.py +0 -0
  294. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/handler/fix_handler.py +0 -0
  295. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/handler/handler_factory.py +0 -0
  296. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/add_noise.py +0 -0
  297. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/base_perturbation.py +0 -0
  298. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/exchange_value.py +0 -0
  299. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/improve_precision.py +0 -0
  300. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/no_change.py +0 -0
  301. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/perturbation/perturbation_factory.py +0 -0
  302. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/free_benchmark/self_check_tool_factory.py +0 -0
  303. {mindstudio_probe-1.1.1/msprobe/mindspore/overflow_check → mindstudio_probe-1.2.1/msprobe/mindspore/grad_probe}/__init__.py +0 -0
  304. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/global_context.py +0 -0
  305. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/grad_monitor.py +0 -0
  306. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/grad_stat_csv.py +0 -0
  307. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/grad_probe/utils.py +0 -0
  308. {mindstudio_probe-1.1.1/msprobe/pytorch/api_accuracy_checker → mindstudio_probe-1.2.1/msprobe/mindspore/overflow_check}/__init__.py +0 -0
  309. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +0 -0
  310. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/runtime.py +0 -0
  311. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/mindspore/task_handler_factory.py +0 -0
  312. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/.keep +0 -0
  313. {mindstudio_probe-1.1.1/msprobe/pytorch/api_accuracy_checker/common → mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker}/__init__.py +0 -0
  314. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/common/.keep +0 -0
  315. {mindstudio_probe-1.1.1/msprobe/pytorch/api_accuracy_checker/compare → mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/common}/__init__.py +0 -0
  316. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/common/config.py +0 -0
  317. {mindstudio_probe-1.1.1/msprobe/pytorch/api_accuracy_checker/run_ut → mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/compare}/__init__.py +0 -0
  318. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml +0 -0
  319. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/config.yaml +0 -0
  320. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/generate_op_script/config_op.json +0 -0
  321. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/generate_op_script/operator_replication.template +0 -0
  322. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/.keep +0 -0
  323. {mindstudio_probe-1.1.1/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer → mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/run_ut}/__init__.py +0 -0
  324. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json +0 -0
  325. {mindstudio_probe-1.1.1/msprobe/pytorch/debugger → mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer}/__init__.py +0 -0
  326. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/attl.py +0 -0
  327. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/client.py +0 -0
  328. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/dump_dispatch.py +0 -0
  329. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py +0 -0
  330. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/torch_ops_config.yaml +0 -0
  331. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/utils.py +0 -0
  332. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/__init__.py +0 -0
  333. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/apply_adam_w.py +0 -0
  334. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/confusion_transpose.py +0 -0
  335. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/fast_gelu.py +0 -0
  336. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/layer_norm_eval.py +0 -0
  337. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/linear.py +0 -0
  338. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/matmul_backward.py +0 -0
  339. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/rms_norm.py +0 -0
  340. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/rotary_mul.py +0 -0
  341. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/scaled_mask_softmax.py +0 -0
  342. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/bench_functions/swiglu.py +0 -0
  343. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/common/__init__.py +0 -0
  344. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/common/compare_script.template +0 -0
  345. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/common/log.py +0 -0
  346. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/compare/mapping.yaml +0 -0
  347. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/compare/match.py +0 -0
  348. {mindstudio_probe-1.1.1/msprobe/pytorch/free_benchmark/common → mindstudio_probe-1.2.1/msprobe/pytorch/debugger}/__init__.py +0 -0
  349. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/dump/kernel_dump/kernel_config.py +0 -0
  350. {mindstudio_probe-1.1.1/msprobe/pytorch/free_benchmark/perturbed_layers → mindstudio_probe-1.2.1/msprobe/pytorch/dump/module_dump}/__init__.py +0 -0
  351. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/__init__.py +0 -0
  352. {mindstudio_probe-1.1.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu → mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/common}/__init__.py +0 -0
  353. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/common/constant.py +0 -0
  354. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/common/counter.py +0 -0
  355. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/common/enums.py +0 -0
  356. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/compare/single_benchmark.py +0 -0
  357. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/main.py +0 -0
  358. {mindstudio_probe-1.1.1/msprobe/pytorch/free_benchmark/result_handlers → mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/perturbed_layers}/__init__.py +0 -0
  359. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py +0 -0
  360. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py +0 -0
  361. {mindstudio_probe-1.1.1/msprobe/pytorch/functional → mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu}/__init__.py +0 -0
  362. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py +0 -0
  363. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py +0 -0
  364. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py +0 -0
  365. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py +0 -0
  366. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py +0 -0
  367. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py +0 -0
  368. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py +0 -0
  369. {mindstudio_probe-1.1.1/msprobe/pytorch/grad_probe → mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/result_handlers}/__init__.py +0 -0
  370. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/result_handlers/check_handler.py +0 -0
  371. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py +0 -0
  372. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py +0 -0
  373. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/function_factory.py +0 -0
  374. {mindstudio_probe-1.1.1/msprobe/pytorch/monitor → mindstudio_probe-1.2.1/msprobe/pytorch/grad_probe}/__init__.py +0 -0
  375. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/grad_probe/grad_monitor.py +0 -0
  376. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/grad_probe/grad_stat_csv.py +0 -0
  377. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/api_registry.py +0 -0
  378. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/utils.py +0 -0
  379. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_aten.py +0 -0
  380. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_npu_custom.py +0 -0
  381. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_tensor.py +0 -0
  382. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_torch.py +0 -0
  383. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/hook_module/wrap_vf.py +0 -0
  384. {mindstudio_probe-1.1.1/msprobe/pytorch/monitor/distributed → mindstudio_probe-1.2.1/msprobe/pytorch/monitor}/__init__.py +0 -0
  385. {mindstudio_probe-1.1.1/msprobe/pytorch/monitor/unittest → mindstudio_probe-1.2.1/msprobe/pytorch/monitor/distributed}/__init__.py +0 -0
  386. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/distributed/distributed_ops.yaml +0 -0
  387. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/distributed/stack_blacklist.yaml +0 -0
  388. {mindstudio_probe-1.1.1/msprobe/pytorch/parse_tool → mindstudio_probe-1.2.1/msprobe/pytorch/monitor/unittest}/__init__.py +0 -0
  389. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/monitor/visualizer.py +0 -0
  390. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/__init__.py +0 -0
  391. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/compare.py +0 -0
  392. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/dump_compare.py +0 -0
  393. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/single_compare.py +0 -0
  394. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/torch_ops_config.yaml +0 -0
  395. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/online_dispatch/utils.py +0 -0
  396. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse.py +0 -0
  397. {mindstudio_probe-1.1.1/msprobe/pytorch/parse_tool/lib → mindstudio_probe-1.2.1/msprobe/pytorch/parse_tool}/__init__.py +0 -0
  398. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/parse_tool/cli.py +0 -0
  399. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/pytorch/pt_config.py +0 -0
  400. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/__init__.py +0 -0
  401. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/builder/__init__.py +0 -0
  402. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/compare/__init__.py +0 -0
  403. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph/__init__.py +0 -0
  404. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph/node_colors.py +0 -0
  405. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/msprobe/visualization/graph/node_op.py +0 -0
  406. {mindstudio_probe-1.1.1 → mindstudio_probe-1.2.1}/setup.cfg +0 -0
@@ -2,4 +2,5 @@ include README.md
2
2
  include LICENSE
3
3
  recursive-include msprobe *
4
4
  recursive-exclude msprobe/test *
5
+ recursive-exclude msprobe/ccsrc *
5
6
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mindstudio-probe
3
- Version: 1.1.1
4
- Summary: Pytorch Ascend Probe Utils
3
+ Version: 1.2.1
4
+ Summary: Ascend Probe Utils
5
5
  Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
6
  Author: Ascend Team
7
7
  Author-email: pmail_mindstudio@huawei.com
@@ -11,6 +11,7 @@ Classifier: Intended Audience :: Developers
11
11
  Classifier: Intended Audience :: Education
12
12
  Classifier: Intended Audience :: Science/Research
13
13
  Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: C++
14
15
  Classifier: Topic :: Scientific/Engineering
15
16
  Classifier: Topic :: Scientific/Engineering :: Mathematics
16
17
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mindstudio-probe
3
- Version: 1.1.1
4
- Summary: Pytorch Ascend Probe Utils
3
+ Version: 1.2.1
4
+ Summary: Ascend Probe Utils
5
5
  Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
6
  Author: Ascend Team
7
7
  Author-email: pmail_mindstudio@huawei.com
@@ -11,6 +11,7 @@ Classifier: Intended Audience :: Developers
11
11
  Classifier: Intended Audience :: Education
12
12
  Classifier: Intended Audience :: Science/Research
13
13
  Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: C++
14
15
  Classifier: Topic :: Scientific/Engineering
15
16
  Classifier: Topic :: Scientific/Engineering :: Mathematics
16
17
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
@@ -8,6 +8,7 @@ mindstudio_probe.egg-info/entry_points.txt
8
8
  mindstudio_probe.egg-info/not-zip-safe
9
9
  mindstudio_probe.egg-info/requires.txt
10
10
  mindstudio_probe.egg-info/top_level.txt
11
+ msprobe/CMakeLists.txt
11
12
  msprobe/README.md
12
13
  msprobe/__init__.py
13
14
  msprobe/config.json
@@ -35,6 +36,8 @@ msprobe/core/compare/layer_mapping/__init__.py
35
36
  msprobe/core/compare/layer_mapping/data_scope_parser.py
36
37
  msprobe/core/compare/layer_mapping/layer_mapping.py
37
38
  msprobe/core/compare/layer_mapping/postprocess_pass.py
39
+ msprobe/core/compare/merge_result/merge_result.py
40
+ msprobe/core/compare/merge_result/merge_result_cli.py
38
41
  msprobe/core/data_dump/data_collector.py
39
42
  msprobe/core/data_dump/json_writer.py
40
43
  msprobe/core/data_dump/scope.py
@@ -75,10 +78,16 @@ msprobe/docs/19.monitor.md
75
78
  msprobe/docs/20.monitor_performance_baseline.md
76
79
  msprobe/docs/21.visualization_PyTorch.md
77
80
  msprobe/docs/22.visualization_MindSpore.md
78
- msprobe/docs/23.tool_function_introduction.md
81
+ msprobe/docs/23.generate_operator_PyTorch.md
82
+ msprobe/docs/24.code_mapping_Mindspore.md
83
+ msprobe/docs/25.tool_function_introduction.md
84
+ msprobe/docs/26.data_dump_PyTorch_baseline.md
85
+ msprobe/docs/27.dump_json_instruction.md
79
86
  msprobe/docs/FAQ.md
80
87
  msprobe/docs/S02.report_free_benchmarking_validation_performance_baseline.md
81
- msprobe/docs/data_dump_Mindspore/dynamic_graph_quick_start_example.md
88
+ msprobe/docs/accuracy_checker_MindSpore/accuracy_checker_MindSpore_baseline.md
89
+ msprobe/docs/data_dump_MindSpore/data_dump_MindSpore_baseline.md
90
+ msprobe/docs/data_dump_MindSpore/dynamic_graph_quick_start_example.md
82
91
  msprobe/docs/img/BLOOM-7B_1.png
83
92
  msprobe/docs/img/BLOOM-7B_2.png
84
93
  msprobe/docs/img/BLOOM-7B_3.png
@@ -109,11 +118,34 @@ msprobe/docs/img/grad_probe_image-2.png
109
118
  msprobe/docs/img/grad_probe_image-3.png
110
119
  msprobe/docs/img/grad_probe_image-4.png
111
120
  msprobe/docs/img/grad_probe_image.png
121
+ msprobe/docs/img/merge_result.png
112
122
  msprobe/docs/img/module_compare.png
113
123
  msprobe/docs/img/ms_dump.png
114
124
  msprobe/docs/img/ms_layer.png
115
125
  msprobe/docs/img/pt_dump.png
116
126
  msprobe/docs/img/monitor/cpu_info.png
127
+ msprobe/docs/img/visualization/fuzzy_match_ms.png
128
+ msprobe/docs/img/visualization/fuzzy_match_pt.png
129
+ msprobe/docs/img/visualization/tensorboard_1.png
130
+ msprobe/docs/img/visualization/tensorboard_2.png
131
+ msprobe/docs/img/visualization/vis_browser_1.png
132
+ msprobe/docs/img/visualization/vis_browser_2.png
133
+ msprobe/docs/img/visualization/vis_precision_info.png
134
+ msprobe/docs/img/visualization/vis_search_info.png
135
+ msprobe/docs/img/visualization/vis_show_info.png
136
+ msprobe/docs/img/visualization/vis_showcase.png
137
+ msprobe/docs/img/visualization/vis_unmatch_info.png
138
+ msprobe/docs/visualization/GPTModel.png
139
+ msprobe/docs/visualization/ParallelMLP.png
140
+ msprobe/docs/visualization/layer_mapping_example.md
141
+ msprobe/docs/visualization/mapping.png
142
+ msprobe/docs/visualization/mapping1.png
143
+ msprobe/docs/visualization/module_name.png
144
+ msprobe/docs/visualization/module_name1.png
145
+ msprobe/docs/visualization/no_mapping.png
146
+ msprobe/docs/visualization/no_mapping1.png
147
+ msprobe/docs/visualization/no_mapping_analyze.png
148
+ msprobe/docs/visualization/top_layer.png
117
149
  msprobe/mindspore/__init__.py
118
150
  msprobe/mindspore/cell_processor.py
119
151
  msprobe/mindspore/ms_config.py
@@ -134,6 +166,13 @@ msprobe/mindspore/api_accuracy_checker/multi_api_accuracy_checker.py
134
166
  msprobe/mindspore/api_accuracy_checker/multi_data_manager.py
135
167
  msprobe/mindspore/api_accuracy_checker/type_mapping.py
136
168
  msprobe/mindspore/api_accuracy_checker/utils.py
169
+ msprobe/mindspore/code_mapping/__init__.py
170
+ msprobe/mindspore/code_mapping/bind.py
171
+ msprobe/mindspore/code_mapping/cmd_parser.py
172
+ msprobe/mindspore/code_mapping/graph.py
173
+ msprobe/mindspore/code_mapping/graph_parser.py
174
+ msprobe/mindspore/code_mapping/main.py
175
+ msprobe/mindspore/code_mapping/processor.py
137
176
  msprobe/mindspore/common/const.py
138
177
  msprobe/mindspore/common/log.py
139
178
  msprobe/mindspore/common/utils.py
@@ -154,6 +193,7 @@ msprobe/mindspore/dump/hook_cell/hook_cell.py
154
193
  msprobe/mindspore/dump/hook_cell/primitive_hooks.py
155
194
  msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml
156
195
  msprobe/mindspore/dump/hook_cell/wrap_api.py
196
+ msprobe/mindspore/dump/kernel_dump/kernel_config.py
157
197
  msprobe/mindspore/dym_loader/hook_dynamic_loader.cc
158
198
  msprobe/mindspore/dym_loader/hook_dynamic_loader.h
159
199
  msprobe/mindspore/free_benchmark/__init__.py
@@ -183,12 +223,13 @@ msprobe/mindspore/grad_probe/grad_monitor.py
183
223
  msprobe/mindspore/grad_probe/grad_stat_csv.py
184
224
  msprobe/mindspore/grad_probe/hook.py
185
225
  msprobe/mindspore/grad_probe/utils.py
226
+ msprobe/mindspore/mindtorch/__init__.py
227
+ msprobe/mindspore/mindtorch/mindtorch_adaptor.py
186
228
  msprobe/mindspore/overflow_check/__init__.py
187
229
  msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py
188
230
  msprobe/mindspore/overflow_check/overflow_check_tool_factory.py
189
231
  msprobe/pytorch/__init__.py
190
232
  msprobe/pytorch/function_factory.py
191
- msprobe/pytorch/module_processer.py
192
233
  msprobe/pytorch/parse.py
193
234
  msprobe/pytorch/pt_config.py
194
235
  msprobe/pytorch/service.py
@@ -206,10 +247,20 @@ msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml
206
247
  msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml
207
248
  msprobe/pytorch/api_accuracy_checker/compare/compare.py
208
249
  msprobe/pytorch/api_accuracy_checker/compare/compare_column.py
250
+ msprobe/pytorch/api_accuracy_checker/compare/compare_input.py
209
251
  msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py
210
252
  msprobe/pytorch/api_accuracy_checker/generate_op_script/config_op.json
211
253
  msprobe/pytorch/api_accuracy_checker/generate_op_script/op_generator.py
212
254
  msprobe/pytorch/api_accuracy_checker/generate_op_script/operator_replication.template
255
+ msprobe/pytorch/api_accuracy_checker/precision_standard/absolute_threshold.py
256
+ msprobe/pytorch/api_accuracy_checker/precision_standard/accumulative_error_compare.py
257
+ msprobe/pytorch/api_accuracy_checker/precision_standard/base_standard.py
258
+ msprobe/pytorch/api_accuracy_checker/precision_standard/benchmark_compare.py
259
+ msprobe/pytorch/api_accuracy_checker/precision_standard/binary_consistency.py
260
+ msprobe/pytorch/api_accuracy_checker/precision_standard/standard_config.py
261
+ msprobe/pytorch/api_accuracy_checker/precision_standard/standard_register.py
262
+ msprobe/pytorch/api_accuracy_checker/precision_standard/thousandth_standard.py
263
+ msprobe/pytorch/api_accuracy_checker/precision_standard/ulp_compare.py
213
264
  msprobe/pytorch/api_accuracy_checker/run_ut/.keep
214
265
  msprobe/pytorch/api_accuracy_checker/run_ut/__init__.py
215
266
  msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py
@@ -251,6 +302,9 @@ msprobe/pytorch/debugger/__init__.py
251
302
  msprobe/pytorch/debugger/debugger_config.py
252
303
  msprobe/pytorch/debugger/precision_debugger.py
253
304
  msprobe/pytorch/dump/kernel_dump/kernel_config.py
305
+ msprobe/pytorch/dump/module_dump/__init__.py
306
+ msprobe/pytorch/dump/module_dump/module_dump.py
307
+ msprobe/pytorch/dump/module_dump/module_processer.py
254
308
  msprobe/pytorch/free_benchmark/__init__.py
255
309
  msprobe/pytorch/free_benchmark/main.py
256
310
  msprobe/pytorch/free_benchmark/common/__init__.py
@@ -278,14 +332,13 @@ msprobe/pytorch/free_benchmark/result_handlers/check_handler.py
278
332
  msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py
279
333
  msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py
280
334
  msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py
281
- msprobe/pytorch/functional/__init__.py
282
- msprobe/pytorch/functional/module_dump.py
283
335
  msprobe/pytorch/grad_probe/__init__.py
284
336
  msprobe/pytorch/grad_probe/grad_monitor.py
285
337
  msprobe/pytorch/grad_probe/grad_stat_csv.py
286
338
  msprobe/pytorch/hook_module/__init__.py
287
339
  msprobe/pytorch/hook_module/api_registry.py
288
340
  msprobe/pytorch/hook_module/hook_module.py
341
+ msprobe/pytorch/hook_module/register_optimizer_hook.py
289
342
  msprobe/pytorch/hook_module/support_wrap_ops.yaml
290
343
  msprobe/pytorch/hook_module/utils.py
291
344
  msprobe/pytorch/hook_module/wrap_aten.py
@@ -298,6 +351,7 @@ msprobe/pytorch/hook_module/wrap_vf.py
298
351
  msprobe/pytorch/monitor/__init__.py
299
352
  msprobe/pytorch/monitor/anomaly_analyse.py
300
353
  msprobe/pytorch/monitor/anomaly_detect.py
354
+ msprobe/pytorch/monitor/csv2tb.py
301
355
  msprobe/pytorch/monitor/features.py
302
356
  msprobe/pytorch/monitor/module_hook.py
303
357
  msprobe/pytorch/monitor/module_metric.py
@@ -340,6 +394,7 @@ msprobe/visualization/compare/graph_comparator.py
340
394
  msprobe/visualization/compare/mode_adapter.py
341
395
  msprobe/visualization/graph/__init__.py
342
396
  msprobe/visualization/graph/base_node.py
397
+ msprobe/visualization/graph/distributed_analyzer.py
343
398
  msprobe/visualization/graph/graph.py
344
399
  msprobe/visualization/graph/node_colors.py
345
400
  msprobe/visualization/graph/node_op.py
@@ -0,0 +1,5 @@
1
+ add_subdirectory(ccsrc)
2
+
3
+ if (DEFINED BUILD_TEST_CASE AND "${BUILD_TEST_CASE}" STREQUAL "True")
4
+ add_subdirectory(test)
5
+ endif()
@@ -51,15 +51,21 @@ export MSPROBE_LOG_LEVEL={x}
51
51
 
52
52
  **1. Pytorch 框架下,工具暂不支持 Fully Sharded Data Parallel(FSDP)。**
53
53
 
54
+ **2. 工具读写的所有路径,如config_path、dump_path等,只允许包含大小写字母、数字、下划线、斜杠、点和短横线。**
55
+
54
56
  ## ⚙️ [安装](./docs/01.installation.md)
55
57
 
58
+ ## 🌟 新版本特性
59
+
60
+ 请参见[特性变更说明](./docs/01.installation.md#特性变更说明)。
61
+
56
62
  ## 🛠️ config.json [介绍](./docs/02.config_introduction.md) 和 [示例](./docs/03.config_examples.md)
57
63
 
58
64
  ## 🧰 主要功能
59
65
 
60
66
  ### 0 用前必看
61
67
 
62
- 使用工具前,建议先浏览[**工具功能模块简介、适用场景和当前版本局限性**](./docs/23.tool_function_introduction.md),了解功能特性。
68
+ 使用工具前,建议先浏览[**工具功能模块简介、适用场景和当前版本局限性**](./docs/25.tool_function_introduction.md),了解功能特性。
63
69
 
64
70
  ### 1 数据采集
65
71
 
@@ -131,29 +137,18 @@ MindSpore 动态图场景的[离线预检](./docs/09.accuracy_checker_MindSpore.
131
137
 
132
138
  [MindSpore 场景的分级可视化构图比对](./docs/22.visualization_MindSpore.md)
133
139
 
134
- ## 🌟 新版本特性
135
140
 
136
- 若查看历史版本特性,请参见[安装](./docs/01.installation.md)。
141
+ ### 11 单算子API自动生成脚本
142
+
143
+ 该功能将msprobe工具dump的精度数据进行解析,自动生成单API脚本,用于复现整网中出现的算子问题,降低用户复现问题的成本,供开发分析算子问题。
137
144
 
138
- 【数据采集】
139
- - 支持 config.json 中的 step 传入范围;
140
- - 优化了指定 step 的机制,指定 step 结束后工具不再采集数据,但训练会继续运行。工具结束运行后,日志提示信息如下:
141
- ```bash
142
- ****************************************
143
- * msprobe ends successfully. *
144
- ****************************************
145
- ```
146
- 注:在多卡场景,每张卡进程训练到指定 step 之后都会打印一次上述信息。
145
+ [PyTorch 单算子API自动生成脚本](./docs/23.generate_operator_PyTorch.md)
147
146
 
148
- 【精度预检】
149
- - 在 PyTorch 场景,支持部分 NPU 融合算子预检。
147
+ ### 12 数码关联
150
148
 
151
- 【精度比对】
152
- - 解决了使用 MindSpore 需要安装 PyTorch 的问题。
149
+ 该功能只支持 MindSpore 静态图场景,用于将IR图与dump数据进行关联,获取dump数据和代码调用栈的关联关系。
153
150
 
154
- 【无标杆比对】
155
- - 补充在 PyTorch 场景的性能基线报告;
156
- - 支持 MindSpore 场景的 change_value 扰动模式。
151
+ [MindSpore 场景的数码关联](./docs/24.code_mapping_Mindspore.md)
157
152
 
158
153
  ## 📑 补充材料
159
154
 
@@ -5,6 +5,7 @@
5
5
  "step": [],
6
6
  "level": "L1",
7
7
  "enable_dataloader": false,
8
+ "async_dump": false,
8
9
  "tensor": {
9
10
  "scope": [],
10
11
  "list":[],
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024-2024, Huawei Technologies Co., Ltd.
1
+ # Copyright (c) 2024-2025, Huawei Technologies Co., Ltd.
2
2
  # All rights reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,6 +29,7 @@ class Const:
29
29
  SEP = "."
30
30
  REGEX_PREFIX_MAX_LENGTH = 20
31
31
  REGEX_PREFIX_PATTERN = r"^[a-zA-Z0-9_-]+$"
32
+ REGEX_FORWARD_BACKWARD = r'\.(forward|backward)\.'
32
33
  FILE_PATTERN = r'^[a-zA-Z0-9_./-]+$'
33
34
  STRING_BLACKLIST = r"^[+-=%@\+\-=%@]|;[+-=%@\+\-=%@]"
34
35
  COMMA = ","
@@ -65,6 +66,7 @@ class Const:
65
66
  ONLINE_DUMP_MODE = [ALL, LIST, AUTO, OFF]
66
67
  SUMMARY = "summary"
67
68
  MD5 = "md5"
69
+ VALUE = "value"
68
70
  SUMMARY_MODE = [ALL, SUMMARY, MD5]
69
71
 
70
72
  WRITE_FLAGS = os.O_WRONLY | os.O_CREAT
@@ -73,6 +75,7 @@ class Const:
73
75
 
74
76
  PKL_SUFFIX = ".pkl"
75
77
  NUMPY_SUFFIX = ".npy"
78
+ NUMPY_PATTERN = "*.npy"
76
79
  PT_SUFFIX = ".pt"
77
80
  ONE_GB = 1073741824 # 1 * 1024 * 1024 * 1024
78
81
  TEN_GB = 10737418240 # 10 * 1024 * 1024 * 1024
@@ -87,6 +90,8 @@ class Const:
87
90
  INPUT_KWARGS = 'input_kwargs'
88
91
  GRAD_INPUT = 'grad_input'
89
92
  GRAD_OUTPUT = 'grad_output'
93
+ PARAMS = 'parameters'
94
+ PARAMS_GRAD = 'parameters_grad'
90
95
  START = "start"
91
96
  STOP = "stop"
92
97
  ENV_ENABLE = "1"
@@ -112,6 +117,7 @@ class Const:
112
117
  DATA = "data"
113
118
  PT_FRAMEWORK = "pytorch"
114
119
  MS_FRAMEWORK = "mindspore"
120
+ MT_FRAMEWORK = "mindtorch"
115
121
  UNKNOWN_FRAMEWORK = "unknown"
116
122
  DIRECTORY_LENGTH = 4096
117
123
  FILE_NAME_LENGTH = 255
@@ -122,9 +128,12 @@ class Const:
122
128
  NPU_LOWERCASE = 'npu'
123
129
  CPU_LOWERCASE = 'cpu'
124
130
  CUDA_LOWERCASE = 'cuda'
131
+ DEVICE = 'device'
125
132
  DISTRIBUTED = 'Distributed'
126
- DUMP_PREFIX = ["Distributed", "Functional", "Torch", "Tensor", "Mint", "MintFunctional", "Primitive",
133
+ DUMP_PREFIX = ["Distributed", "Functional", "Torch", "Tensor", "Mint", "MintFunctional", "Primitive",
127
134
  "Aten", "VF", "NPU", "Jit"]
135
+ MODULE_PREFIX = ["Module", "Cell"]
136
+ FORWARD_NAME_SUFFIX = ".forward"
128
137
 
129
138
  # struct json param
130
139
  ORIGIN_DATA = "origin_data"
@@ -145,10 +154,13 @@ class Const:
145
154
  SCOPE_ID_INDEX = -1
146
155
  SCOPE_DIRECTION_INDEX = -2
147
156
  TYPE_NAME_INDEX = -3
157
+ PARAMS_GRAD_TYPE_NAME_INDEX = -2
148
158
  LAYER_NAME_INDEX = -4
159
+ PARAMS_GRAD_NAME_INDEX = -3
149
160
  API_TYPE_INDEX = 0
150
161
  LEFT_MOVE_INDEX = -1
151
162
  RIGHT_MOVE_INDEX = 1
163
+ LAST_INDEX = -1
152
164
 
153
165
  TOP_LAYER = "TopLayer"
154
166
  CELL = "Cell"
@@ -162,12 +174,16 @@ class Const:
162
174
 
163
175
  CONVERT = {
164
176
  "int32_to_int64": ["torch.int32", "torch.int64"],
177
+ "int64_to_fp32": ["torch.int64", "torch.float32"]
165
178
  }
166
179
 
167
180
  CONVERT_API = {
168
- "int32_to_int64": ["cross_entropy"]
181
+ "int32_to_int64": ["cross_entropy"],
182
+ "int64_to_fp32": ["histc"]
169
183
  }
170
184
 
185
+ FA_SPECIAL_SPARSE_MODE = [2, 3, 4]
186
+
171
187
  FILL_CHAR_NUMS = 50
172
188
  TOOL_ENDS_SUCCESSFULLY = f"{TOOL_NAME} ends successfully."
173
189
  WITHOUT_CALL_STACK = "The call stack retrieval failed."
@@ -179,6 +195,8 @@ class Const:
179
195
  STEP_RANK_MAXIMUM_VALUE = int(1e6)
180
196
 
181
197
  # data type const
198
+ TORCH_INT_DTYPE = ["torch.int8", "torch.int32", "torch.int64"]
199
+ TORCH_FLOAT_DTYPE = ["torch.bfloat16", "torch.float16", "torch.float32", "torch.float64"]
182
200
  FLOAT16 = "Float16"
183
201
  FLOAT32 = "Float32"
184
202
  BFLOAT16 = "BFloat16"
@@ -193,6 +211,23 @@ class Const:
193
211
  MEAN = 'Mean'
194
212
  NORM = 'Norm'
195
213
 
214
+ CODE_STACK = 'Code Stack'
215
+ OP_NAME = 'Op Name'
216
+ SCOPE_NAME = 'Scope Name'
217
+ CODE_STACKS = 'Code Stacks'
218
+ FILE_PATH = 'File Path'
219
+ NEW_LINE = '\n'
220
+ CSV_NEWLINE_SEPARATOR = ',\n'
221
+ # 分隔符常量
222
+ SCOPE_SEPARATOR = "/"
223
+ REPLACEMENT_CHARACTER = "_"
224
+
225
+ OPTIMIZER = "optimizer"
226
+ CLIP_GRAD = "clip_grad"
227
+ END_PREFIX = "end_"
228
+
229
+ TENSOR_STAT_LEN = 2
230
+
196
231
 
197
232
  class CompareConst:
198
233
  """
@@ -239,13 +274,58 @@ class CompareConst:
239
274
  INPUT_STRUCT = "input_struct"
240
275
  KWARGS_STRUCT = "kwargs_struct"
241
276
  OUTPUT_STRUCT = "output_struct"
277
+ PARAMS_STRUCT = "params_struct"
278
+ PARAMS_GRAD_STRUCT = "params_grad_struct"
242
279
  SUMMARY = "summary"
280
+ COMPARE_RESULT = "compare_result"
281
+ COMPARE_MESSAGE = "compare_message"
243
282
  MAX_EXCEL_LENGTH = 1048576
244
283
  YES = "Yes"
245
284
  NO = "No"
246
285
  STATISTICS_INDICATOR_NUM = 4
247
286
  EPSILON = 1e-10
248
287
  COMPARE_ENDS_SUCCESSFULLY = "msprobe compare ends successfully."
288
+ DEFAULT_RATIO_VALUE = 10000
289
+ THOUSANDTH_PASS_VALUE = 0.999
290
+ ZERO_SHAPE = '(0,)'
291
+
292
+ BENCHMARK_COMPARE_ALGORITHM_NAME = "标杆比对法"
293
+ ULP_COMPARE_ALGORITHM_NAME = "ULP误差比对法"
294
+ BINARY_CONSISTENCY_ALGORITHM_NAME = "二进制一致法"
295
+ ABSOLUTE_THRESHOLD_ALGORITHM_NAME = "绝对阈值法"
296
+ THOUSANDTH_STANDARD_ALGORITHM_NAME = "双千指标法"
297
+ ACCUMULATIVE_ERROR_COMPARE_ALGORITHM_NAME = "累积误差比对法"
298
+
299
+ ABSOLUTE_THRESHOLD = 'absolute_threshold'
300
+ BINARY_CONSISTENCY = 'binary_consistency'
301
+ ULP_COMPARE = 'ulp_compare'
302
+ THOUSANDTH_STANDARD = 'thousandth_threshold'
303
+ BENCHMARK = 'benchmark'
304
+ ACCUMULATIVE_ERROR_COMPARE = 'accumulative_error_compare'
305
+
306
+ SMALL_VALUE_ERR_RATIO = "small_value_err_ratio"
307
+ RMSE_RATIO = "rmse_ratio"
308
+ MAX_REL_ERR_RATIO = "max_rel_err_ratio"
309
+ MEAN_REL_ERR_RATIO = "mean_rel_err_ratio"
310
+ EB_RATIO = "eb_ratio"
311
+
312
+ SMALL_VALUE = "small_value"
313
+ RMSE = "rmse"
314
+ MAX_REL_ERR = "max_rel_err"
315
+ MEAN_REL_ERR = "mean_rel_err"
316
+ EB = "eb"
317
+
318
+ SMALL_VALUE_ERR_STATUS = "small_value_err_status"
319
+ RMSE_STATUS = "rmse_status"
320
+ MAX_REL_ERR_STATUS = "max_rel_err_status"
321
+ MEAN_REL_ERR_STATUS = "mean_rel_err_status"
322
+ EB_STATUS = "eb_status"
323
+
324
+ MEAN_ULP_ERR = "mean_ulp_err"
325
+ ULP_ERR_PROPORTION = "ulp_err_proportion"
326
+ ULP_ERR_PROPORTION_RATIO = "ulp_err_proportion_ratio"
327
+
328
+ ULP_ERR_STATUS = "ulp_err_status"
249
329
 
250
330
  COMPARE_RESULT_HEADER = [
251
331
  NPU_NAME, BENCH_NAME, NPU_DTYPE, BENCH_DTYPE, NPU_SHAPE, BENCH_SHAPE, COSINE, MAX_ABS_ERR, MAX_RELATIVE_ERR,
@@ -263,12 +343,57 @@ class CompareConst:
263
343
  NPU_NAME, BENCH_NAME, NPU_DTYPE, BENCH_DTYPE, NPU_SHAPE, BENCH_SHAPE, NPU_MD5, BENCH_MD5, RESULT
264
344
  ]
265
345
 
346
+ COMPARE_RESULT_HEADER_STACK = COMPARE_RESULT_HEADER + [STACK]
347
+
348
+ SUMMARY_COMPARE_RESULT_HEADER_STACK = SUMMARY_COMPARE_RESULT_HEADER + [STACK]
349
+
350
+ MD5_COMPARE_RESULT_HEADER_STACK = MD5_COMPARE_RESULT_HEADER + [STACK]
351
+
266
352
  HEAD_OF_COMPARE_MODE = {
267
353
  Const.ALL: COMPARE_RESULT_HEADER,
268
354
  Const.SUMMARY: SUMMARY_COMPARE_RESULT_HEADER,
269
355
  Const.MD5: MD5_COMPARE_RESULT_HEADER
270
356
  }
271
357
 
358
+ ALL_COMPARE_INDEX = [COSINE, MAX_ABS_ERR, MAX_RELATIVE_ERR, ONE_THOUSANDTH_ERR_RATIO, FIVE_THOUSANDTHS_ERR_RATIO]
359
+ SUMMARY_COMPARE_INDEX = [MAX_DIFF, MIN_DIFF, MEAN_DIFF, NORM_DIFF,
360
+ MAX_RELATIVE_ERR, MIN_RELATIVE_ERR, MEAN_RELATIVE_ERR, NORM_RELATIVE_ERR]
361
+
362
+ # dtype match
363
+ MS_TYPE = [
364
+ [Const.FLOAT16, Const.FLOAT32], [Const.FLOAT32, Const.FLOAT16],
365
+ [Const.FLOAT16, Const.BFLOAT16], [Const.BFLOAT16, Const.FLOAT16]
366
+ ]
367
+ TORCH_TYPE = [
368
+ [Const.TORCH_FLOAT16, Const.TORCH_FLOAT32], [Const.TORCH_FLOAT32, Const.TORCH_FLOAT16],
369
+ [Const.TORCH_FLOAT16, Const.TORCH_BFLOAT16], [Const.TORCH_BFLOAT16, Const.TORCH_FLOAT16]
370
+ ]
371
+
372
+ # read_op
373
+ IO_NAME_MAPPING = {
374
+ Const.INPUT_ARGS: '.input',
375
+ Const.INPUT_KWARGS: '.input',
376
+ Const.INPUT: '.input',
377
+ Const.OUTPUT: '.output',
378
+ Const.PARAMS: '.parameters'
379
+ }
380
+
381
+ # state to struct mapping
382
+ STATE_TO_STRUCT_MAPPING = {
383
+ Const.INPUT: INPUT_STRUCT,
384
+ Const.KWARGS: INPUT_STRUCT,
385
+ Const.OUTPUT: OUTPUT_STRUCT,
386
+ Const.PARAMS: PARAMS_STRUCT,
387
+ Const.PARAMS_GRAD: PARAMS_GRAD_STRUCT
388
+ }
389
+
390
+ STRUCT_COMPARE_KEY = [
391
+ INPUT_STRUCT,
392
+ OUTPUT_STRUCT,
393
+ PARAMS_STRUCT,
394
+ PARAMS_GRAD_STRUCT
395
+ ]
396
+
272
397
  # compare standard
273
398
  HUNDRED_RATIO_THRESHOLD = 0.01
274
399
  THOUSAND_RATIO_THRESHOLD = 0.001
@@ -350,6 +475,8 @@ class CompareConst:
350
475
  INPUT_PATTERN = Const.SEP + Const.INPUT + Const.SEP
351
476
  KWARGS_PATTERN = Const.SEP + Const.KWARGS + Const.SEP
352
477
  OUTPUT_PATTERN = Const.SEP + Const.OUTPUT + Const.SEP
478
+ PARAMS_PATTERN = Const.SEP + Const.PARAMS + Const.SEP
479
+ PARAMS_GRAD_PATTERN = Const.SEP + Const.PARAMS_GRAD + Const.SEP
353
480
  COMPARE_KEY = 'compare_key'
354
481
  COMPARE_SHAPE = 'compare_shape'
355
482
  INTERNAL_API_MAPPING_FILE = 'ms_to_pt_api.yaml'
@@ -372,13 +499,17 @@ class FileCheckConst:
372
499
  JSON_SUFFIX = ".json"
373
500
  PT_SUFFIX = ".pt"
374
501
  CSV_SUFFIX = ".csv"
502
+ XLSX_SUFFIX = ".xlsx"
375
503
  YAML_SUFFIX = ".yaml"
504
+ IR_SUFFIX = ".ir"
376
505
  MAX_PKL_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
377
506
  MAX_NUMPY_SIZE = 10737418240 # 10 * 1024 * 1024 * 1024
378
507
  MAX_JSON_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
379
508
  MAX_PT_SIZE = 10737418240 # 10 * 1024 * 1024 * 1024
380
509
  MAX_CSV_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
510
+ MAX_XLSX_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
381
511
  MAX_YAML_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
512
+ MAX_IR_SIZE = 1073741824 # 1 * 1024 * 1024 * 1024
382
513
  COMMOM_FILE_SIZE = 1048576 # 1 * 1024 * 1024
383
514
  DIR = "dir"
384
515
  FILE = "file"
@@ -390,7 +521,9 @@ class FileCheckConst:
390
521
  JSON_SUFFIX: MAX_JSON_SIZE,
391
522
  PT_SUFFIX: MAX_PT_SIZE,
392
523
  CSV_SUFFIX: MAX_CSV_SIZE,
393
- YAML_SUFFIX: MAX_YAML_SIZE
524
+ XLSX_SUFFIX: MAX_XLSX_SIZE,
525
+ YAML_SUFFIX: MAX_YAML_SIZE,
526
+ IR_SUFFIX: MAX_IR_SIZE
394
527
  }
395
528
  CSV_BLACK_LIST = r'^[+-=%@\+\-=%@]|;[+-=%@\+\-=%@]'
396
529
 
@@ -437,6 +570,11 @@ class MsCompareConst:
437
570
 
438
571
  EPSILON = 1e-8
439
572
 
573
+ class ProcessStatus:
574
+ SUCCESS = "success"
575
+ API_NOT_FOUND = "api_not_found"
576
+ EXCEPTION_SKIP = "exception_skip"
577
+
440
578
 
441
579
  class MsgConst:
442
580
  """
@@ -474,15 +612,20 @@ class MonitorConst:
474
612
  """
475
613
  Class for monitor const
476
614
  """
477
- OP_LIST = ["min", "max", "norm", "zeros", "nans", "id", "mean"]
615
+ OP_LIST = ["norm", "min", "max", "zeros", "nans", "id", "mean"]
478
616
  MONITOR_OUTPUT_DIR = "MONITOR_OUTPUT_DIR"
479
617
  DEFAULT_MONITOR_OUTPUT_DIR = "./monitor_output"
480
618
  DATABASE = "database"
481
619
  EMAIL = "email"
482
620
  OPT_TY = ['Megatron_DistributedOptimizer', 'Megatron_Float16OptimizerWithFloat16Params']
483
- DEEPSPEED_OPT_TY = ("DeepSpeedZeroOptimizer_Stage0", "DeepSpeedZeroOptimizer_Stage1_or_2", "DeepSpeedZeroOptimizer_Stage3")
621
+ DEEPSPEED_OPT_TY = (
622
+ "DeepSpeedZeroOptimizer_Stage0",
623
+ "DeepSpeedZeroOptimizer_Stage1_or_2",
624
+ "DeepSpeedZeroOptimizer_Stage3"
625
+ )
484
626
  RULE_NAME = ['AnomalyTurbulence']
485
627
 
628
+ SLICE_SIZE = 20480
486
629
  DOT = "."
487
630
  VPP_SEP = ":"
488
631
  ACTV_IN = "input"
@@ -491,12 +634,18 @@ class MonitorConst:
491
634
  ACTVGRAD_OUT = "output_grad"
492
635
  POST_GRAD = "post_grad"
493
636
  PRE_GRAD = "pre_grad"
637
+ ACC_GRAD = "acc_grad"
494
638
  PREFIX_POST = "post"
495
639
  PREFIX_PRE = "pre"
640
+ OUTPUT_DIR_PATTERN = r"([\w-]{0,20})-rank(\d{1,5})-"
496
641
 
642
+ EXP_AVG = "exp_avg"
643
+ EFXP_AVG_SQ = "efxp_avg_sq"
497
644
 
498
645
  ANOMALY_JSON = "anomaly.json"
499
646
  ANALYSE_JSON = "anomaly_analyse.json"
500
647
  TENSORBOARD = "tensorboard"
501
648
  CSV = "csv"
502
649
  API = "api"
650
+ OPS_START_INDEX = 3
651
+ HEADER_NAME_INDEX = 1
@@ -27,11 +27,13 @@ class MsprobeException(CodedException):
27
27
  INVALID_PARAM_ERROR = 0
28
28
  OVERFLOW_NUMS_ERROR = 1
29
29
  RECURSION_LIMIT_ERROR = 2
30
+ INTERFACE_USAGE_ERROR = 3
30
31
 
31
32
  err_strs = {
32
33
  INVALID_PARAM_ERROR: "[msprobe] 无效参数:",
33
34
  OVERFLOW_NUMS_ERROR: "[msprobe] 超过预设溢出次数 当前溢出次数:",
34
- RECURSION_LIMIT_ERROR: "[msprobe] 递归调用超过限制:"
35
+ RECURSION_LIMIT_ERROR: "[msprobe] 递归调用超过限制:",
36
+ INTERFACE_USAGE_ERROR: "[msprobe] Invalid interface usage: "
35
37
  }
36
38
 
37
39