mindstudio-probe 1.0.3__py3-none-any.whl → 1.0.4__py3-none-any.whl

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 (262) hide show
  1. {mindstudio_probe-1.0.3.dist-info → mindstudio_probe-1.0.4.dist-info}/LICENSE +201 -201
  2. {mindstudio_probe-1.0.3.dist-info → mindstudio_probe-1.0.4.dist-info}/METADATA +36 -34
  3. mindstudio_probe-1.0.4.dist-info/RECORD +276 -0
  4. {mindstudio_probe-1.0.3.dist-info → mindstudio_probe-1.0.4.dist-info}/WHEEL +1 -1
  5. {mindstudio_probe-1.0.3.dist-info → mindstudio_probe-1.0.4.dist-info}/entry_points.txt +1 -0
  6. msprobe/README.md +101 -237
  7. msprobe/{config/config.json → config.json} +49 -49
  8. msprobe/core/advisor/advisor.py +124 -124
  9. msprobe/core/advisor/advisor_const.py +59 -59
  10. msprobe/core/advisor/advisor_result.py +58 -58
  11. msprobe/core/common/const.py +341 -318
  12. msprobe/core/common/exceptions.py +99 -99
  13. msprobe/core/common/{file_check.py → file_utils.py} +478 -283
  14. msprobe/core/common/log.py +76 -69
  15. msprobe/core/common/utils.py +385 -616
  16. msprobe/core/common_config.py +85 -71
  17. msprobe/core/compare/acc_compare.py +299 -298
  18. msprobe/core/compare/check.py +95 -95
  19. msprobe/core/compare/compare_cli.py +49 -49
  20. msprobe/core/compare/highlight.py +223 -222
  21. msprobe/core/compare/multiprocessing_compute.py +149 -149
  22. msprobe/core/compare/npy_compare.py +295 -295
  23. msprobe/core/compare/utils.py +430 -429
  24. msprobe/core/data_dump/data_collector.py +154 -144
  25. msprobe/core/data_dump/data_processor/base.py +314 -293
  26. msprobe/core/data_dump/data_processor/factory.py +59 -59
  27. msprobe/core/data_dump/data_processor/mindspore_processor.py +186 -198
  28. msprobe/core/data_dump/data_processor/pytorch_processor.py +366 -389
  29. msprobe/core/data_dump/json_writer.py +96 -116
  30. msprobe/core/data_dump/scope.py +178 -178
  31. msprobe/core/grad_probe/constant.py +70 -70
  32. msprobe/core/grad_probe/grad_compare.py +171 -175
  33. msprobe/core/grad_probe/utils.py +64 -52
  34. msprobe/docs/01.installation.md +89 -0
  35. msprobe/docs/02.config_introduction.md +165 -0
  36. msprobe/docs/03.config_examples.md +247 -0
  37. msprobe/docs/04.acl_config_examples.md +76 -0
  38. msprobe/docs/05.data_dump_PyTorch.md +198 -0
  39. msprobe/docs/06.data_dump_MindSpore.md +243 -0
  40. msprobe/docs/07.accuracy_checker_PyTorch.md +274 -0
  41. msprobe/docs/08.accuracy_checker_online_PyTorch.md +198 -0
  42. msprobe/docs/09.accuracy_checker_MindSpore.md +68 -0
  43. msprobe/docs/10.accuracy_compare_PyTorch.md +245 -0
  44. msprobe/docs/11.accuracy_compare_MindSpore.md +202 -0
  45. msprobe/docs/12.overflow_check_PyTorch.md +79 -0
  46. msprobe/docs/13.overflow_check_MindSpore.md +31 -0
  47. msprobe/{pytorch/doc/parse_tool.md → docs/14.data_parse_PyTorch.md} +283 -286
  48. msprobe/docs/15.free_benchmarking_PyTorch.md +164 -0
  49. msprobe/{doc/grad_probe/grad_probe.md → docs/17.grad_probe.md} +207 -207
  50. msprobe/docs/FAQ_PyTorch.md +177 -0
  51. msprobe/docs/S02.report_free_benchmarking_validation_performance_baseline.md +146 -0
  52. msprobe/docs/img/free_benchmark_framework.png +0 -0
  53. msprobe/mindspore/__init__.py +1 -1
  54. msprobe/mindspore/api_accuracy_checker/api_accuracy_checker.py +254 -245
  55. msprobe/mindspore/api_accuracy_checker/api_info.py +69 -69
  56. msprobe/mindspore/api_accuracy_checker/api_runner.py +155 -151
  57. msprobe/mindspore/api_accuracy_checker/base_compare_algorithm.py +196 -196
  58. msprobe/mindspore/api_accuracy_checker/cmd_parser.py +6 -0
  59. msprobe/mindspore/api_accuracy_checker/compute_element.py +238 -223
  60. msprobe/mindspore/api_accuracy_checker/main.py +8 -15
  61. msprobe/mindspore/api_accuracy_checker/type_mapping.py +113 -113
  62. msprobe/mindspore/api_accuracy_checker/utils.py +79 -62
  63. msprobe/mindspore/cell_processor.py +34 -34
  64. msprobe/mindspore/common/const.py +106 -87
  65. msprobe/mindspore/common/log.py +37 -37
  66. msprobe/mindspore/common/utils.py +81 -57
  67. msprobe/mindspore/compare/distributed_compare.py +75 -75
  68. msprobe/mindspore/compare/ms_compare.py +219 -117
  69. msprobe/mindspore/compare/ms_graph_compare.py +348 -317
  70. msprobe/mindspore/compare/ms_to_pt_api.yaml +399 -399
  71. msprobe/mindspore/debugger/debugger_config.py +66 -74
  72. msprobe/mindspore/debugger/precision_debugger.py +126 -107
  73. msprobe/mindspore/dump/dump_tool_factory.py +35 -35
  74. msprobe/mindspore/dump/hook_cell/api_registry.py +118 -104
  75. msprobe/mindspore/dump/hook_cell/hook_cell.py +55 -53
  76. msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml +922 -925
  77. msprobe/mindspore/dump/hook_cell/wrap_api.py +113 -0
  78. msprobe/mindspore/dump/jit_dump.py +72 -56
  79. msprobe/mindspore/dump/kernel_graph_dump.py +59 -60
  80. msprobe/mindspore/dump/kernel_kbyk_dump.py +64 -65
  81. msprobe/mindspore/free_benchmark/api_pynative_self_check.py +116 -116
  82. msprobe/mindspore/free_benchmark/common/config.py +12 -12
  83. msprobe/mindspore/free_benchmark/common/handler_params.py +17 -17
  84. msprobe/mindspore/free_benchmark/common/utils.py +71 -71
  85. msprobe/mindspore/free_benchmark/data/support_wrap_ops.yaml +842 -842
  86. msprobe/mindspore/free_benchmark/decorator/dec_forward.py +43 -42
  87. msprobe/mindspore/free_benchmark/decorator/decorator_factory.py +107 -107
  88. msprobe/mindspore/free_benchmark/handler/base_handler.py +90 -90
  89. msprobe/mindspore/free_benchmark/handler/check_handler.py +41 -41
  90. msprobe/mindspore/free_benchmark/handler/fix_handler.py +36 -36
  91. msprobe/mindspore/free_benchmark/handler/handler_factory.py +21 -21
  92. msprobe/mindspore/free_benchmark/perturbation/add_noise.py +67 -67
  93. msprobe/mindspore/free_benchmark/perturbation/base_perturbation.py +21 -21
  94. msprobe/mindspore/free_benchmark/perturbation/bit_noise.py +63 -63
  95. msprobe/mindspore/free_benchmark/perturbation/exchange_value.py +51 -0
  96. msprobe/mindspore/free_benchmark/perturbation/improve_precision.py +35 -34
  97. msprobe/mindspore/free_benchmark/perturbation/no_change.py +12 -12
  98. msprobe/mindspore/free_benchmark/perturbation/perturbation_factory.py +29 -27
  99. msprobe/mindspore/free_benchmark/self_check_tool_factory.py +33 -33
  100. msprobe/mindspore/grad_probe/global_context.py +90 -91
  101. msprobe/mindspore/grad_probe/grad_analyzer.py +231 -231
  102. msprobe/mindspore/grad_probe/grad_monitor.py +27 -27
  103. msprobe/mindspore/grad_probe/grad_stat_csv.py +131 -131
  104. msprobe/mindspore/grad_probe/hook.py +94 -92
  105. msprobe/mindspore/grad_probe/utils.py +29 -28
  106. msprobe/mindspore/ms_config.py +128 -126
  107. msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py +44 -45
  108. msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +34 -34
  109. msprobe/mindspore/runtime.py +4 -4
  110. msprobe/mindspore/service.py +378 -354
  111. msprobe/mindspore/task_handler_factory.py +24 -24
  112. msprobe/msprobe.py +105 -107
  113. msprobe/pytorch/__init__.py +3 -3
  114. msprobe/pytorch/api_accuracy_checker/common/config.py +53 -55
  115. msprobe/pytorch/api_accuracy_checker/common/utils.py +214 -165
  116. msprobe/pytorch/api_accuracy_checker/compare/algorithm.py +213 -213
  117. msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py +606 -581
  118. msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml +132 -132
  119. msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml +390 -390
  120. msprobe/pytorch/api_accuracy_checker/compare/compare.py +386 -381
  121. msprobe/pytorch/api_accuracy_checker/compare/compare_column.py +73 -73
  122. msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py +245 -244
  123. msprobe/pytorch/api_accuracy_checker/config.yaml +10 -10
  124. msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py +335 -332
  125. msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py +200 -199
  126. msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +133 -134
  127. msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +592 -581
  128. msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +70 -74
  129. msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json +7 -4
  130. msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/attl.py +197 -202
  131. msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/client.py +325 -324
  132. msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/device_dispatch.py +204 -204
  133. msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py +219 -218
  134. msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/ssl_config.py +10 -10
  135. msprobe/pytorch/bench_functions/__init__.py +15 -15
  136. msprobe/pytorch/bench_functions/apply_adam_w.py +28 -28
  137. msprobe/pytorch/bench_functions/confusion_transpose.py +19 -19
  138. msprobe/pytorch/bench_functions/fast_gelu.py +55 -55
  139. msprobe/pytorch/bench_functions/layer_norm_eval.py +6 -6
  140. msprobe/pytorch/bench_functions/linear.py +12 -12
  141. msprobe/pytorch/bench_functions/matmul_backward.py +48 -48
  142. msprobe/pytorch/bench_functions/npu_fusion_attention.py +509 -421
  143. msprobe/pytorch/bench_functions/rms_norm.py +15 -15
  144. msprobe/pytorch/bench_functions/rotary_mul.py +52 -52
  145. msprobe/pytorch/bench_functions/scaled_mask_softmax.py +26 -26
  146. msprobe/pytorch/bench_functions/swiglu.py +55 -55
  147. msprobe/pytorch/common/__init__.py +2 -2
  148. msprobe/pytorch/common/compare_script.template +14 -14
  149. msprobe/pytorch/common/log.py +20 -31
  150. msprobe/pytorch/common/parse_json.py +39 -39
  151. msprobe/pytorch/common/utils.py +305 -300
  152. msprobe/pytorch/compare/distributed_compare.py +66 -66
  153. msprobe/pytorch/compare/mapping.yaml +607 -607
  154. msprobe/pytorch/compare/match.py +34 -33
  155. msprobe/pytorch/compare/pt_compare.py +50 -40
  156. msprobe/pytorch/debugger/debugger_config.py +95 -95
  157. msprobe/pytorch/debugger/precision_debugger.py +125 -125
  158. msprobe/pytorch/free_benchmark/__init__.py +8 -8
  159. msprobe/pytorch/free_benchmark/common/constant.py +70 -70
  160. msprobe/pytorch/free_benchmark/common/counter.py +71 -71
  161. msprobe/pytorch/free_benchmark/common/enums.py +37 -37
  162. msprobe/pytorch/free_benchmark/common/params.py +129 -129
  163. msprobe/pytorch/free_benchmark/common/utils.py +102 -102
  164. msprobe/pytorch/free_benchmark/compare/grad_saver.py +179 -179
  165. msprobe/pytorch/free_benchmark/compare/single_benchmark.py +104 -104
  166. msprobe/pytorch/free_benchmark/main.py +105 -105
  167. msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py +13 -13
  168. msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py +41 -41
  169. msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py +90 -90
  170. msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py +104 -104
  171. msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py +63 -63
  172. msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py +68 -68
  173. msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py +28 -28
  174. msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py +45 -45
  175. msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py +19 -19
  176. msprobe/pytorch/free_benchmark/result_handlers/base_handler.py +217 -217
  177. msprobe/pytorch/free_benchmark/result_handlers/check_handler.py +39 -39
  178. msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py +23 -23
  179. msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py +30 -30
  180. msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py +170 -170
  181. msprobe/pytorch/function_factory.py +76 -75
  182. msprobe/pytorch/functional/dump_module.py +39 -39
  183. msprobe/pytorch/grad_probe/grad_monitor.py +91 -90
  184. msprobe/pytorch/grad_probe/grad_stat_csv.py +128 -128
  185. msprobe/pytorch/hook_module/api_registry.py +161 -161
  186. msprobe/pytorch/hook_module/hook_module.py +120 -120
  187. msprobe/pytorch/hook_module/support_wrap_ops.yaml +1879 -1877
  188. msprobe/pytorch/hook_module/utils.py +30 -29
  189. msprobe/pytorch/hook_module/wrap_aten.py +110 -110
  190. msprobe/pytorch/hook_module/wrap_distributed.py +78 -78
  191. msprobe/pytorch/hook_module/wrap_functional.py +105 -105
  192. msprobe/pytorch/hook_module/wrap_npu_custom.py +93 -84
  193. msprobe/pytorch/hook_module/wrap_tensor.py +71 -71
  194. msprobe/pytorch/hook_module/wrap_torch.py +86 -86
  195. msprobe/pytorch/hook_module/wrap_vf.py +62 -62
  196. msprobe/pytorch/module_processer.py +138 -138
  197. msprobe/pytorch/online_dispatch/__init__.py +20 -20
  198. msprobe/pytorch/online_dispatch/compare.py +236 -236
  199. msprobe/pytorch/online_dispatch/dispatch.py +271 -271
  200. msprobe/pytorch/online_dispatch/dump_compare.py +155 -156
  201. msprobe/pytorch/online_dispatch/single_compare.py +391 -391
  202. msprobe/pytorch/online_dispatch/torch_ops_config.yaml +49 -49
  203. msprobe/pytorch/online_dispatch/utils.py +130 -146
  204. msprobe/pytorch/parse.py +4 -4
  205. msprobe/pytorch/parse_tool/cli.py +32 -32
  206. msprobe/pytorch/parse_tool/lib/compare.py +260 -271
  207. msprobe/pytorch/parse_tool/lib/config.py +52 -52
  208. msprobe/pytorch/parse_tool/lib/file_desc.py +31 -31
  209. msprobe/pytorch/parse_tool/lib/interactive_cli.py +102 -102
  210. msprobe/pytorch/parse_tool/lib/parse_exception.py +54 -54
  211. msprobe/pytorch/parse_tool/lib/parse_tool.py +158 -158
  212. msprobe/pytorch/parse_tool/lib/utils.py +316 -321
  213. msprobe/pytorch/parse_tool/lib/visualization.py +85 -91
  214. msprobe/pytorch/pt_config.py +188 -187
  215. msprobe/pytorch/service.py +246 -252
  216. mindstudio_probe-1.0.3.dist-info/RECORD +0 -272
  217. msprobe/config/README.md +0 -539
  218. msprobe/mindspore/doc/compare.md +0 -58
  219. msprobe/mindspore/doc/dump.md +0 -217
  220. msprobe/mindspore/dump/hook_cell/wrap_functional.py +0 -91
  221. msprobe/mindspore/dump/hook_cell/wrap_tensor.py +0 -63
  222. msprobe/pytorch/doc/FAQ.md +0 -193
  223. msprobe/pytorch/doc/api_accuracy_checker.md +0 -313
  224. msprobe/pytorch/doc/api_accuracy_checker_online.md +0 -187
  225. msprobe/pytorch/doc/dump.md +0 -260
  226. msprobe/pytorch/doc/msprobe/321/207/342/226/223/342/225/233/321/205/342/225/221/320/266/321/205/342/225/226/320/265/321/205/320/225/342/225/226/321/206/320/245/342/226/221/321/206/320/235/320/276dump/321/206/320/260/320/227/321/205/320/227/320/226/321/206/320/220/320/267/321/210/320/223/342/225/234/321/205/320/257/342/225/221/321/207/342/225/221/342/224/220/321/206/320/232/320/265/321/205/320/241/320/232.md +0 -182
  227. msprobe/pytorch/doc/ptdbg_ascend_compare.md +0 -240
  228. msprobe/pytorch/doc/ptdbg_ascend_overview.md +0 -68
  229. msprobe/pytorch/doc/ptdbg_ascend_quickstart.md +0 -381
  230. msprobe/pytorch/doc/run_overflow_check.md +0 -25
  231. msprobe/pytorch/doc//321/205/320/254/320/270/321/207/342/225/221/342/224/220/321/207/342/226/223/342/225/233/321/205/342/225/221/320/266/321/206/320/277/320/244/321/205/320/277/342/225/243.md +0 -90
  232. msprobe/pytorch/doc//321/206/320/247/320/260/321/206/320/260/320/227/321/206/320/255/320/226/321/205/342/225/226/320/265/321/205/320/225/342/225/226/321/205/320/254/342/225/221/321/206/320/251/320/277/321/211/320/272/320/234/321/210/320/277/320/221/321/205/320/242/320/234/321/206/320/220/320/267/321/210/320/223/342/225/234/321/205/320/257/342/225/221/321/207/342/225/221/342/224/220/321/206/320/232/320/265/321/205/320/241/320/232.md +0 -151
  233. {mindstudio_probe-1.0.3.dist-info → mindstudio_probe-1.0.4.dist-info}/top_level.txt +0 -0
  234. /msprobe/{pytorch/doc → docs}/img/BLOOM-7B_1.png +0 -0
  235. /msprobe/{pytorch/doc → docs}/img/BLOOM-7B_2.png +0 -0
  236. /msprobe/{pytorch/doc → docs}/img/BLOOM-7B_3.png +0 -0
  237. /msprobe/{pytorch/doc → docs}/img/BLOOM-7B_4.png +0 -0
  238. /msprobe/{pytorch/doc → docs}/img/GPT-3_1.png +0 -0
  239. /msprobe/{pytorch/doc → docs}/img/GPT-3_2.png +0 -0
  240. /msprobe/{pytorch/doc → docs}/img/GPT-3_3.png +0 -0
  241. /msprobe/{pytorch/doc → docs}/img/GPT-3_4.png +0 -0
  242. /msprobe/{pytorch/doc → docs}/img/GPT-3_5.png +0 -0
  243. /msprobe/{pytorch/doc → docs}/img/GPT-3_6.png +0 -0
  244. /msprobe/{pytorch/doc → docs}/img/GPT-3_7.png +0 -0
  245. /msprobe/{pytorch/doc → docs}/img/GPT-3_8.png +0 -0
  246. /msprobe/{pytorch/doc → docs}/img/YOLOV5S_1.png +0 -0
  247. /msprobe/{pytorch/doc → docs}/img/YOLOV5S_2.png +0 -0
  248. /msprobe/{pytorch/doc → docs}/img/accuracy_checking_details.png +0 -0
  249. /msprobe/{pytorch/doc → docs}/img/accuracy_checking_result.png +0 -0
  250. /msprobe/{pytorch/doc → docs}/img/api_precision_compare_details.png +0 -0
  251. /msprobe/{pytorch/doc → docs}/img/api_precision_compare_result.png +0 -0
  252. /msprobe/{pytorch/doc → docs}/img/auto_analyze_log.png +0 -0
  253. /msprobe/{pytorch/doc → docs}/img/compare_result_pkl.png +0 -0
  254. /msprobe/{pytorch/doc → docs}/img/compare_result_pkl_md5.png.png +0 -0
  255. /msprobe/{pytorch/doc → docs}/img/cpu_info.png +0 -0
  256. /msprobe/{config → docs}/img/free_benchmark.png +0 -0
  257. /msprobe/{doc/grad_probe/img/image-1.png → docs/img/grad_probe_image-1.png} +0 -0
  258. /msprobe/{doc/grad_probe/img/image-2.png → docs/img/grad_probe_image-2.png} +0 -0
  259. /msprobe/{doc/grad_probe/img/image-3.png → docs/img/grad_probe_image-3.png} +0 -0
  260. /msprobe/{doc/grad_probe/img/image-4.png → docs/img/grad_probe_image-4.png} +0 -0
  261. /msprobe/{doc/grad_probe/img/image.png → docs/img/grad_probe_image.png} +0 -0
  262. /msprobe/{pytorch/doc → docs}/img/module_compare.png +0 -0
@@ -1,925 +1,922 @@
1
- # Copyright 2024 Huawei Technologies Co., Ltd
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- # ============================================================================
15
-
16
- # List of ops that register hooks
17
-
18
-
19
- ops:
20
- - adaptive_avg_pool1d
21
- - adaptive_avg_pool2d
22
- - adaptive_avg_pool3d
23
- - adaptive_max_pool1d
24
- - adaptive_max_pool2d
25
- - avg_pool1d
26
- - avg_pool2d
27
- - avg_pool3d
28
- - batch_norm
29
- - bias_add
30
- - ctc_greedy_decoder
31
- - conv1d
32
- - conv2d
33
- - conv3d
34
- - deformable_conv2d
35
- - dense
36
- - dropout
37
- - dropout1d
38
- - dropout2d
39
- - dropout3d
40
- - flatten
41
- - fold
42
- - fractional_max_pool3d
43
- - lp_pool1d
44
- - lp_pool2d
45
- - lrn
46
- - max_pool2d
47
- - max_pool3d
48
- - max_unpool1d
49
- - max_unpool2d
50
- - max_unpool3d
51
- - unfold
52
- - binary_cross_entropy
53
- - binary_cross_entropy_with_logits
54
- - cosine_embedding_loss
55
- - cross_entropy
56
- - ctc_loss
57
- - gaussian_nll_loss
58
- - hinge_embedding_loss
59
- - huber_loss
60
- - kl_div
61
- - l1_loss
62
- - margin_ranking_loss
63
- - mse_loss
64
- - multi_margin_loss
65
- - multilabel_margin_loss
66
- - multilabel_soft_margin_loss
67
- - nll_loss
68
- - smooth_l1_loss
69
- - triplet_margin_loss
70
- - elu
71
- - fast_gelu
72
- - gelu
73
- - glu
74
- - gumbel_softmax
75
- - hardshrink
76
- - hardsigmoid
77
- - hardswish
78
- - hardtanh
79
- - leaky_relu
80
- - log_softmax
81
- - logsigmoid
82
- - mish
83
- - prelu
84
- - relu
85
- - relu6
86
- - celu
87
- - rrelu
88
- - selu
89
- - sigmoid
90
- - silu
91
- - softmax
92
- - softmin
93
- - softshrink
94
- - softsign
95
- - tanh
96
- - threshold
97
- - cdist
98
- - dist
99
- - pdist
100
- - choice_with_mask
101
- - random_categorical
102
- - log_uniform_candidate_sampler
103
- - uniform_candidate_sampler
104
- - affine_grid
105
- - bounding_box_decode
106
- - bounding_box_encode
107
- - col2im
108
- - check_valid
109
- - crop_and_resize
110
- - grid_sample
111
- - interpolate
112
- - iou
113
- - pad
114
- - padding
115
- - pixel_shuffle
116
- - pixel_unshuffle
117
- - upsample
118
- - abs
119
- - absolute
120
- - accumulate_n
121
- - acos
122
- - arccos
123
- - acosh
124
- - add
125
- - addcdiv
126
- - addcmul
127
- - addmv
128
- - addn
129
- - angle
130
- - arccosh
131
- - arcsin
132
- - arcsinh
133
- - arctan
134
- - arctanh
135
- - arctan2
136
- - asin
137
- - asinh
138
- - atan
139
- - atan2
140
- - atanh
141
- - atleast_1d
142
- - atleast_2d
143
- - atleast_3d
144
- - bessel_i0
145
- - bessel_i0e
146
- - bessel_i1
147
- - bessel_i1e
148
- - bessel_j0
149
- - bessel_j1
150
- - bessel_k0
151
- - bessel_k0e
152
- - bessel_k1
153
- - bessel_k1e
154
- - bessel_y0
155
- - bessel_y1
156
- - bitwise_and
157
- - bitwise_left_shift
158
- - bitwise_or
159
- - bitwise_right_shift
160
- - bitwise_xor
161
- - ceil
162
- - clamp
163
- - clip
164
- - combinations
165
- - copysign
166
- - cos
167
- - cosh
168
- - cosine_similarity
169
- - cov
170
- - diag_embed
171
- - diff
172
- - deg2rad
173
- - digamma
174
- - div
175
- - divide
176
- - erf
177
- - erfc
178
- - erfinv
179
- - exp
180
- - exp2
181
- - expm1
182
- - floor
183
- - floor_div
184
- - floor_mod
185
- - float_power
186
- - fmod
187
- - frac
188
- - gcd
189
- - hypot
190
- - igamma
191
- - igammac
192
- - imag
193
- - i0
194
- - inv
195
- - invert
196
- - lcm
197
- - ldexp
198
- - lerp
199
- - log
200
- - log2
201
- - log10
202
- - log1p
203
- - logaddexp
204
- - logaddexp2
205
- - logical_and
206
- - logical_not
207
- - logical_or
208
- - logical_xor
209
- - logit
210
- - mul
211
- - multiply
212
- - mvlgamma
213
- - neg
214
- - negative
215
- - nextafter
216
- - polar
217
- - polygamma
218
- - positive
219
- - pow
220
- - rad2deg
221
- - ravel
222
- - real
223
- - reciprocal
224
- - remainder
225
- - rot90
226
- - round
227
- - rsqrt
228
- - sgn
229
- - sign
230
- - signbit
231
- - sin
232
- - sinc
233
- - sinh
234
- - sqrt
235
- - square
236
- - sub
237
- - subtract
238
- - t
239
- - tan
240
- - tanhshrink
241
- - trapz
242
- - tril_indices
243
- - triu_indices
244
- - true_divide
245
- - trunc
246
- - truncate_div
247
- - truncate_mod
248
- - xdivy
249
- - xlogy
250
- - zeta
251
- - all
252
- - amax
253
- - amin
254
- - aminmax
255
- - any
256
- - argmax
257
- - argmin
258
- - cummax
259
- - cummin
260
- - cumprod
261
- - cumsum
262
- - fmax
263
- - histc
264
- - logsumexp
265
- - max
266
- - mean
267
- - median
268
- - min
269
- - norm
270
- - prod
271
- - std
272
- - std_mean
273
- - var
274
- - var_mean
275
- - argsort
276
- - approximate_equal
277
- - equal
278
- - ge
279
- - greater
280
- - greater_equal
281
- - gt
282
- - intopk
283
- - isclose
284
- - isfinite
285
- - isinf
286
- - isnan
287
- - isneginf
288
- - isposinf
289
- - isreal
290
- - is_complex
291
- - le
292
- - less
293
- - less_equal
294
- - lt
295
- - maximum
296
- - minimum
297
- - msort
298
- - ne
299
- - not_equal
300
- - searchsorted
301
- - topk
302
- - bmm
303
- - addbmm
304
- - addmm
305
- - baddbmm
306
- - addr
307
- - adjoint
308
- - cholesky
309
- - cholesky_solve
310
- - batch_dot
311
- - dot
312
- - eig
313
- - inner
314
- - inverse
315
- - geqrf
316
- - ger
317
- - kron
318
- - lu_solve
319
- - lu_unpack
320
- - matmul
321
- - matrix_solve
322
- - matrix_band_part
323
- - matrix_diag
324
- - matrix_diag_part
325
- - matrix_set_diag
326
- - mm
327
- - mv
328
- - outer
329
- - orgqr
330
- - ormqr
331
- - pinv
332
- - svd
333
- - tensor_dot
334
- - logdet
335
- - slogdet
336
- - qr
337
- - trace
338
- - bartlett_window
339
- - blackman_window
340
- - hamming_window
341
- - hann_window
342
- - kaiser_window
343
- - eye
344
- - fill
345
- - full
346
- - full_like
347
- - linspace
348
- - logspace
349
- - one_hot
350
- - arange
351
- - range
352
- - heaviside
353
- - bernoulli
354
- - gamma
355
- - laplace
356
- - multinomial
357
- - multinomial_with_replacement
358
- - rand
359
- - rand_like
360
- - randint
361
- - randint_like
362
- - randn
363
- - randn_like
364
- - random_gamma
365
- - random_poisson
366
- - randperm
367
- - standard_laplace
368
- - standard_normal
369
- - uniform
370
- - argwhere
371
- - batch_to_space_nd
372
- - bincount
373
- - block_diag
374
- - broadcast_to
375
- - cat
376
- - channel_shuffle
377
- - chunk
378
- - column_stack
379
- - concat
380
- - conj
381
- - count_nonzero
382
- - deepcopy
383
- - diag
384
- - diagflat
385
- - diagonal
386
- - dyn_shape
387
- - dsplit
388
- - dstack
389
- - einsum
390
- - expand
391
- - expand_dims
392
- - flip
393
- - fliplr
394
- - flipud
395
- - gather_d
396
- - gather_elements
397
- - gather_nd
398
- - hsplit
399
- - hstack
400
- - index_add
401
- - index_fill
402
- - index_select
403
- - inplace_add
404
- - inplace_index_add
405
- - inplace_sub
406
- - inplace_update
407
- - masked_fill
408
- - masked_select
409
- - meshgrid
410
- - moveaxis
411
- - movedim
412
- - narrow
413
- - nan_to_num
414
- - nansum
415
- - normal
416
- - nonzero
417
- - population_count
418
- - rank
419
- - repeat_elements
420
- - repeat_interleave
421
- - reshape
422
- - reverse
423
- - reverse_sequence
424
- - roll
425
- - scatter
426
- - scatter_nd
427
- - select
428
- - sequence_mask
429
- - shuffle
430
- - size
431
- - slice
432
- - sort
433
- - space_to_batch_nd
434
- - sparse_segment_mean
435
- - split
436
- - squeeze
437
- - stack
438
- - strided_slice
439
- - sum
440
- - swapaxes
441
- - swapdims
442
- - tensor_scatter_add
443
- - tensor_scatter_div
444
- - tensor_scatter_max
445
- - tensor_scatter_min
446
- - tensor_scatter_mul
447
- - tensor_scatter_sub
448
- - tensor_scatter_elements
449
- - tensor_split
450
- - tile
451
- - tril
452
- - triu
453
- - transpose
454
- - unbind
455
- - unique
456
- - unique_consecutive
457
- - unique_with_pad
458
- - unsorted_segment_max
459
- - unsorted_segment_min
460
- - unsorted_segment_prod
461
- - unsorted_segment_sum
462
- - unsqueeze
463
- - unstack
464
- - view_as_real
465
- - vsplit
466
- - vstack
467
- - where
468
- - cross
469
- - renorm
470
- - is_tensor
471
- - scalar_cast
472
- - scalar_to_tensor
473
- - tuple_to_array
474
- - clip_by_global_norm
475
- - clip_by_value
476
- - assign
477
- - assign_add
478
- - assign_sub
479
- - scatter_add
480
- - scatter_div
481
- - scatter_max
482
- - scatter_min
483
- - scatter_mul
484
- - scatter_nd_add
485
- - scatter_nd_div
486
- - scatter_nd_max
487
- - scatter_nd_min
488
- - scatter_nd_mul
489
- - scatter_nd_sub
490
- - scatter_update
491
- - derivative
492
- - jet
493
-
494
- tensor:
495
- - __abs__
496
- - __add__
497
- - __and__
498
- - __bool__
499
- - __eq__
500
- - __ge__
501
- - __gt__
502
- - __iadd__
503
- - __ifloordiv__
504
- - __imatmul__
505
- - __imod__
506
- - __imul__
507
- - __isub__
508
- - __le__
509
- - __lt__
510
- - __matmul__
511
- - __mod__
512
- - __mul__
513
- - __ne__
514
- - __neg__
515
- - __or__
516
- - __pow__
517
- - __radd__
518
- - __rmatmul__
519
- - __rmod__
520
- - __rmul__
521
- - __rpow__
522
- - __rsub__
523
- - __sub__
524
- - __truediv__
525
- - __xor__
526
- - abs
527
- - absolute
528
- - acos
529
- - acosh
530
- - add
531
- - addbmm
532
- - addcdiv
533
- - addcmul
534
- - addmm
535
- - addmv
536
- - addr
537
- - all
538
- - amax
539
- - amin
540
- - any
541
- - arccos
542
- - arccosh
543
- - argmax
544
- - angle
545
- - arcsin
546
- - arcsinh
547
- - arctan
548
- - arctanh
549
- - argmin
550
- - argsort
551
- - asin
552
- - asinh
553
- - atan
554
- - atan2
555
- - atanh
556
- - baddbmm
557
- - bernoulli
558
- - bincount
559
- - bitwise_and
560
- - bitwise_or
561
- - bitwise_xor
562
- - bmm
563
- - bool
564
- - broadcast_to
565
- - ceil
566
- - cholesky_solve
567
- - cholesky
568
- - clamp
569
- - clip
570
- - conj
571
- - copysign
572
- - cos
573
- - cosh
574
- - cross
575
- - cummax
576
- - cummin
577
- - cumprod
578
- - cumsum
579
- - deg2rad
580
- - diag
581
- - diagflat
582
- - diff
583
- - digamma
584
- - div
585
- - divide
586
- - equal
587
- - erf
588
- - erfc
589
- - erfinv
590
- - exp
591
- - expand_as
592
- - expm1
593
- - flip
594
- - fliplr
595
- - flipud
596
- - float_power
597
- - floor
598
- - fmod
599
- - frac
600
- - gather_elements
601
- - ge
602
- - geqrf
603
- - ger
604
- - greater
605
- - greater_equal
606
- - gt
607
- - half
608
- - hardshrink
609
- - heaviside
610
- - histc
611
- - hypot
612
- - i0
613
- - igamma
614
- - igammac
615
- - imag
616
- - index_add
617
- - index_fill
618
- - index_put
619
- - index_select
620
- - inner
621
- - int
622
- - inverse
623
- - isclose
624
- - isfinite
625
- - isinf
626
- - isnan
627
- - is_complex
628
- - is_signed
629
- - isneginf
630
- - isposinf
631
- - isreal
632
- - lcm
633
- - ldexp
634
- - le
635
- - lerp
636
- - less
637
- - less_equal
638
- - log
639
- - log10
640
- - log1p
641
- - log2
642
- - logaddexp
643
- - logaddexp2
644
- - logdet
645
- - logical_and
646
- - logical_not
647
- - logical_or
648
- - logical_xor
649
- - logit
650
- - logsumexp
651
- - long
652
- - lt
653
- - masked_fill
654
- - masked_scatter
655
- - masked_select
656
- - matmul
657
- - max
658
- - maximum
659
- - mean
660
- - median
661
- - min
662
- - minimum
663
- - moveaxis
664
- - movedim
665
- - msort
666
- - multinomial
667
- - multiply
668
- - mvlgamma
669
- - nan_to_num
670
- - nansum
671
- - narrow
672
- - ne
673
- - neg
674
- - negative
675
- - nelement
676
- - new_ones
677
- - new_zeros
678
- - nextafter
679
- - norm
680
- - nonzero
681
- - not_equal
682
- - ormqr
683
- - permute
684
- - pow
685
- - prod
686
- - qr
687
- - ravel
688
- - real
689
- - reciprocal
690
- - remainder
691
- - renorm
692
- - rad2deg
693
- - tile
694
- - repeat_interleave
695
- - reshape
696
- - reshape
697
- - round
698
- - rot90
699
- - rsqrt
700
- - sum_to_size
701
- - scatter
702
- - sgn
703
- - short
704
- - sigmoid
705
- - sign
706
- - signbit
707
- - sin
708
- - sinc
709
- - sinh
710
- - slogdet
711
- - sort
712
- - split
713
- - sqrt
714
- - square
715
- - squeeze
716
- - std
717
- - subtract
718
- - subtract
719
- - svd
720
- - swapaxes
721
- - swapdims
722
- - t
723
- - take
724
- - tan
725
- - tanh
726
- - trace
727
- - swapaxes
728
- - tile
729
- - to
730
- - topk
731
- - tril
732
- - tensor_split
733
- - transpose
734
- - true_divide
735
- - trunc
736
- - unbind
737
- - unique_consecutive
738
- - unsqueeze
739
- - var
740
- - view
741
- - where
742
- - xlogy
743
- - from_numpy
744
- - std
745
- - take
746
- - var
747
- - all
748
- - any
749
- - copy
750
- - diagonal
751
- - flatten
752
- - resize
753
- - sum
754
-
755
- mint.ops:
756
- - abs
757
- - absolute_import
758
- - add
759
- - add_ex
760
- - all
761
- - any
762
- - any_ex
763
- - arange
764
- - argmax
765
- - avg_pool2d
766
- - baddbmm
767
- - baddbmm_ex
768
- - batch_norm
769
- - binary_cross_entropy_with_logits
770
- - bitwise_and
771
- - bitwise_or
772
- - bitwise_xor
773
- - bmm
774
- - broadcast_to
775
- - cat
776
- - cat_ex
777
- - ceil
778
- - chunk
779
- - clamp
780
- - conv2d
781
- - conv_transpose2d
782
- - cos
783
- - cross
784
- - cummax
785
- - cummin
786
- - cumsum
787
- - div
788
- - divide
789
- - dropout
790
- - embedding
791
- - eq
792
- - erf
793
- - erfinv
794
- - exp
795
- - flatten
796
- - flip
797
- - flip_ex
798
- - fold
799
- - full
800
- - functional
801
- - gather
802
- - gelu
803
- - greater
804
- - grid_sample
805
- - group_norm
806
- - gt
807
- - index_select
808
- - interpolate
809
- - isclose
810
- - isfinite
811
- - layer_norm
812
- - le
813
- - leaky_relu
814
- - less
815
- - less_equal
816
- - linear
817
- - linspace
818
- - log
819
- - logical_and
820
- - logical_not
821
- - logical_or
822
- - lt
823
- - masked_select
824
- - matmul
825
- - max
826
- - max_pool2d
827
- - maximum
828
- - mean
829
- - mean_ex
830
- - min
831
- - minimum
832
- - mul
833
- - ne
834
- - neg
835
- - negative
836
- - nn
837
- - nonzero
838
- - normal
839
- - one_hot
840
- - ones
841
- - ones_ex
842
- - ones_like
843
- - pad
844
- - permute
845
- - permute_ex
846
- - pow
847
- - prod
848
- - reciprocal
849
- - relu
850
- - remainder
851
- - repeat_interleave
852
- - rsqrt
853
- - scatter
854
- - scatter_add
855
- - searchsorted
856
- - sigmoid
857
- - silu
858
- - sin
859
- - softmax
860
- - softplus
861
- - sort
862
- - split
863
- - sqrt
864
- - sqrt_ex
865
- - square
866
- - stack
867
- - sub
868
- - sub_ex
869
- - sum
870
- - tanh
871
- - tile
872
- - topk
873
- - tril
874
- - triu
875
- - unfold
876
- - unique
877
- - where
878
- - xlogy
879
- - zeros
880
- - zeros_ex
881
- - zeros_like
882
-
883
- mint.nn:
884
- - Dropout
885
- - Embedding
886
- - Fold
887
- - LayerNorm
888
- - Linear
889
- - MaxPool2d
890
- - Unfold
891
- - Upsample
892
-
893
- mint.nn.functional:
894
- - absolute_import
895
- - avg_pool2d
896
- - batch_norm
897
- - batch_norm_ex
898
- - bce_with_logits
899
- - binary_cross_entropy_with_logits
900
- - conv_transpose2d
901
- - dense
902
- - dropout
903
- - embedding
904
- - fold
905
- - gelu
906
- - grid_sample
907
- - group_norm
908
- - interpolate
909
- - layer_norm
910
- - leaky_relu
911
- - linear
912
- - max_pool2d
913
- - max_pool2d_ex
914
- - normal
915
- - one_hot
916
- - one_hot_ext
917
- - pad
918
- - relu
919
- - sigmoid
920
- - silu
921
- - softmax
922
- - softmax_ex
923
- - softplus
924
- - tanh
925
- - unfold
1
+ # Copyright 2024 Huawei Technologies Co., Ltd
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # ============================================================================
15
+
16
+ # List of ops that register hooks
17
+
18
+
19
+ ops:
20
+ - adaptive_avg_pool1d
21
+ - adaptive_avg_pool2d
22
+ - adaptive_avg_pool3d
23
+ - adaptive_max_pool1d
24
+ - adaptive_max_pool2d
25
+ - avg_pool1d
26
+ - avg_pool2d
27
+ - avg_pool3d
28
+ - batch_norm
29
+ - bias_add
30
+ - ctc_greedy_decoder
31
+ - conv1d
32
+ - conv2d
33
+ - conv3d
34
+ - deformable_conv2d
35
+ - dense
36
+ - dropout
37
+ - dropout1d
38
+ - dropout2d
39
+ - dropout3d
40
+ - flatten
41
+ - fold
42
+ - fractional_max_pool3d
43
+ - lp_pool1d
44
+ - lp_pool2d
45
+ - lrn
46
+ - max_pool2d
47
+ - max_pool3d
48
+ - max_unpool1d
49
+ - max_unpool2d
50
+ - max_unpool3d
51
+ - unfold
52
+ - binary_cross_entropy
53
+ - binary_cross_entropy_with_logits
54
+ - cosine_embedding_loss
55
+ - cross_entropy
56
+ - ctc_loss
57
+ - gaussian_nll_loss
58
+ - hinge_embedding_loss
59
+ - huber_loss
60
+ - kl_div
61
+ - l1_loss
62
+ - margin_ranking_loss
63
+ - mse_loss
64
+ - multi_margin_loss
65
+ - multilabel_margin_loss
66
+ - multilabel_soft_margin_loss
67
+ - nll_loss
68
+ - smooth_l1_loss
69
+ - triplet_margin_loss
70
+ - elu
71
+ - fast_gelu
72
+ - gelu
73
+ - glu
74
+ - gumbel_softmax
75
+ - hardshrink
76
+ - hardsigmoid
77
+ - hardswish
78
+ - hardtanh
79
+ - leaky_relu
80
+ - log_softmax
81
+ - logsigmoid
82
+ - mish
83
+ - prelu
84
+ - relu
85
+ - relu6
86
+ - celu
87
+ - rrelu
88
+ - selu
89
+ - sigmoid
90
+ - silu
91
+ - softmax
92
+ - softmin
93
+ - softshrink
94
+ - softsign
95
+ - tanh
96
+ - threshold
97
+ - cdist
98
+ - dist
99
+ - pdist
100
+ - choice_with_mask
101
+ - random_categorical
102
+ - log_uniform_candidate_sampler
103
+ - uniform_candidate_sampler
104
+ - affine_grid
105
+ - bounding_box_decode
106
+ - bounding_box_encode
107
+ - col2im
108
+ - check_valid
109
+ - crop_and_resize
110
+ - grid_sample
111
+ - interpolate
112
+ - iou
113
+ - pad
114
+ - padding
115
+ - pixel_shuffle
116
+ - pixel_unshuffle
117
+ - upsample
118
+ - abs
119
+ - absolute
120
+ - accumulate_n
121
+ - acos
122
+ - arccos
123
+ - acosh
124
+ - add
125
+ - addcdiv
126
+ - addcmul
127
+ - addmv
128
+ - addn
129
+ - angle
130
+ - arccosh
131
+ - arcsin
132
+ - arcsinh
133
+ - arctan
134
+ - arctanh
135
+ - arctan2
136
+ - asin
137
+ - asinh
138
+ - atan
139
+ - atan2
140
+ - atanh
141
+ - atleast_1d
142
+ - atleast_2d
143
+ - atleast_3d
144
+ - bessel_i0
145
+ - bessel_i0e
146
+ - bessel_i1
147
+ - bessel_i1e
148
+ - bessel_j0
149
+ - bessel_j1
150
+ - bessel_k0
151
+ - bessel_k0e
152
+ - bessel_k1
153
+ - bessel_k1e
154
+ - bessel_y0
155
+ - bessel_y1
156
+ - bitwise_and
157
+ - bitwise_left_shift
158
+ - bitwise_or
159
+ - bitwise_right_shift
160
+ - bitwise_xor
161
+ - ceil
162
+ - clamp
163
+ - clip
164
+ - combinations
165
+ - copysign
166
+ - cos
167
+ - cosh
168
+ - cosine_similarity
169
+ - cov
170
+ - diag_embed
171
+ - diff
172
+ - deg2rad
173
+ - digamma
174
+ - div
175
+ - divide
176
+ - erf
177
+ - erfc
178
+ - erfinv
179
+ - exp
180
+ - exp2
181
+ - expm1
182
+ - floor
183
+ - floor_div
184
+ - floor_mod
185
+ - float_power
186
+ - fmod
187
+ - frac
188
+ - gcd
189
+ - hypot
190
+ - igamma
191
+ - igammac
192
+ - imag
193
+ - i0
194
+ - inv
195
+ - invert
196
+ - lcm
197
+ - ldexp
198
+ - lerp
199
+ - log
200
+ - log2
201
+ - log10
202
+ - log1p
203
+ - logaddexp
204
+ - logaddexp2
205
+ - logical_and
206
+ - logical_not
207
+ - logical_or
208
+ - logical_xor
209
+ - logit
210
+ - mul
211
+ - multiply
212
+ - mvlgamma
213
+ - neg
214
+ - negative
215
+ - nextafter
216
+ - polar
217
+ - polygamma
218
+ - positive
219
+ - pow
220
+ - rad2deg
221
+ - ravel
222
+ - real
223
+ - reciprocal
224
+ - remainder
225
+ - rot90
226
+ - round
227
+ - rsqrt
228
+ - sgn
229
+ - sign
230
+ - signbit
231
+ - sin
232
+ - sinc
233
+ - sinh
234
+ - sqrt
235
+ - square
236
+ - sub
237
+ - subtract
238
+ - t
239
+ - tan
240
+ - tanhshrink
241
+ - trapz
242
+ - tril_indices
243
+ - triu_indices
244
+ - true_divide
245
+ - trunc
246
+ - truncate_div
247
+ - truncate_mod
248
+ - xdivy
249
+ - xlogy
250
+ - zeta
251
+ - all
252
+ - amax
253
+ - amin
254
+ - aminmax
255
+ - any
256
+ - argmax
257
+ - argmin
258
+ - cummax
259
+ - cummin
260
+ - cumprod
261
+ - cumsum
262
+ - fmax
263
+ - histc
264
+ - logsumexp
265
+ - max
266
+ - mean
267
+ - median
268
+ - min
269
+ - norm
270
+ - prod
271
+ - std
272
+ - std_mean
273
+ - var
274
+ - var_mean
275
+ - argsort
276
+ - approximate_equal
277
+ - equal
278
+ - ge
279
+ - greater
280
+ - greater_equal
281
+ - gt
282
+ - intopk
283
+ - isclose
284
+ - isfinite
285
+ - isinf
286
+ - isnan
287
+ - isneginf
288
+ - isposinf
289
+ - isreal
290
+ - is_complex
291
+ - le
292
+ - less
293
+ - less_equal
294
+ - lt
295
+ - maximum
296
+ - minimum
297
+ - msort
298
+ - ne
299
+ - not_equal
300
+ - searchsorted
301
+ - topk
302
+ - bmm
303
+ - addbmm
304
+ - addmm
305
+ - baddbmm
306
+ - addr
307
+ - adjoint
308
+ - cholesky
309
+ - cholesky_solve
310
+ - batch_dot
311
+ - dot
312
+ - eig
313
+ - inner
314
+ - inverse
315
+ - geqrf
316
+ - ger
317
+ - kron
318
+ - lu_solve
319
+ - lu_unpack
320
+ - matmul
321
+ - matrix_solve
322
+ - matrix_band_part
323
+ - matrix_diag
324
+ - matrix_diag_part
325
+ - matrix_set_diag
326
+ - mm
327
+ - mv
328
+ - outer
329
+ - orgqr
330
+ - ormqr
331
+ - pinv
332
+ - svd
333
+ - tensor_dot
334
+ - logdet
335
+ - slogdet
336
+ - qr
337
+ - trace
338
+ - bartlett_window
339
+ - blackman_window
340
+ - hamming_window
341
+ - hann_window
342
+ - kaiser_window
343
+ - eye
344
+ - fill
345
+ - full
346
+ - full_like
347
+ - linspace
348
+ - logspace
349
+ - one_hot
350
+ - range
351
+ - heaviside
352
+ - bernoulli
353
+ - gamma
354
+ - laplace
355
+ - multinomial
356
+ - multinomial_with_replacement
357
+ - rand
358
+ - rand_like
359
+ - randint
360
+ - randint_like
361
+ - randn
362
+ - randn_like
363
+ - random_gamma
364
+ - random_poisson
365
+ - randperm
366
+ - standard_laplace
367
+ - standard_normal
368
+ - uniform
369
+ - argwhere
370
+ - batch_to_space_nd
371
+ - bincount
372
+ - block_diag
373
+ - broadcast_to
374
+ - cat
375
+ - channel_shuffle
376
+ - chunk
377
+ - column_stack
378
+ - concat
379
+ - conj
380
+ - count_nonzero
381
+ - deepcopy
382
+ - diag
383
+ - diagflat
384
+ - diagonal
385
+ - dyn_shape
386
+ - dsplit
387
+ - dstack
388
+ - einsum
389
+ - expand
390
+ - expand_dims
391
+ - flip
392
+ - fliplr
393
+ - flipud
394
+ - gather_d
395
+ - gather_elements
396
+ - gather_nd
397
+ - hsplit
398
+ - hstack
399
+ - index_add
400
+ - index_fill
401
+ - index_select
402
+ - inplace_add
403
+ - inplace_index_add
404
+ - inplace_sub
405
+ - inplace_update
406
+ - masked_fill
407
+ - masked_select
408
+ - meshgrid
409
+ - moveaxis
410
+ - movedim
411
+ - narrow
412
+ - nan_to_num
413
+ - nansum
414
+ - normal
415
+ - nonzero
416
+ - population_count
417
+ - rank
418
+ - repeat_elements
419
+ - repeat_interleave
420
+ - reshape
421
+ - reverse
422
+ - reverse_sequence
423
+ - roll
424
+ - scatter
425
+ - scatter_nd
426
+ - select
427
+ - sequence_mask
428
+ - shuffle
429
+ - size
430
+ - slice
431
+ - sort
432
+ - space_to_batch_nd
433
+ - sparse_segment_mean
434
+ - split
435
+ - squeeze
436
+ - stack
437
+ - strided_slice
438
+ - sum
439
+ - swapaxes
440
+ - swapdims
441
+ - tensor_scatter_add
442
+ - tensor_scatter_div
443
+ - tensor_scatter_max
444
+ - tensor_scatter_min
445
+ - tensor_scatter_mul
446
+ - tensor_scatter_sub
447
+ - tensor_scatter_elements
448
+ - tensor_split
449
+ - tile
450
+ - tril
451
+ - triu
452
+ - transpose
453
+ - unbind
454
+ - unique
455
+ - unique_consecutive
456
+ - unique_with_pad
457
+ - unsorted_segment_max
458
+ - unsorted_segment_min
459
+ - unsorted_segment_prod
460
+ - unsorted_segment_sum
461
+ - unsqueeze
462
+ - unstack
463
+ - view_as_real
464
+ - vsplit
465
+ - vstack
466
+ - where
467
+ - cross
468
+ - renorm
469
+ - is_tensor
470
+ - scalar_cast
471
+ - scalar_to_tensor
472
+ - tuple_to_array
473
+ - clip_by_global_norm
474
+ - clip_by_value
475
+ - assign
476
+ - assign_add
477
+ - assign_sub
478
+ - scatter_add
479
+ - scatter_div
480
+ - scatter_max
481
+ - scatter_min
482
+ - scatter_mul
483
+ - scatter_nd_add
484
+ - scatter_nd_div
485
+ - scatter_nd_max
486
+ - scatter_nd_min
487
+ - scatter_nd_mul
488
+ - scatter_nd_sub
489
+ - scatter_update
490
+ - derivative
491
+ - jet
492
+
493
+ tensor:
494
+ - __abs__
495
+ - __add__
496
+ - __and__
497
+ - __bool__
498
+ - __eq__
499
+ - __ge__
500
+ - __gt__
501
+ - __iadd__
502
+ - __ifloordiv__
503
+ - __imatmul__
504
+ - __imod__
505
+ - __imul__
506
+ - __isub__
507
+ - __le__
508
+ - __lt__
509
+ - __matmul__
510
+ - __mod__
511
+ - __mul__
512
+ - __ne__
513
+ - __neg__
514
+ - __or__
515
+ - __pow__
516
+ - __radd__
517
+ - __rmatmul__
518
+ - __rmod__
519
+ - __rmul__
520
+ - __rpow__
521
+ - __rsub__
522
+ - __sub__
523
+ - __truediv__
524
+ - __xor__
525
+ - abs
526
+ - absolute
527
+ - acos
528
+ - acosh
529
+ - add
530
+ - addbmm
531
+ - addcdiv
532
+ - addcmul
533
+ - addmm
534
+ - addmv
535
+ - addr
536
+ - all
537
+ - amax
538
+ - amin
539
+ - any
540
+ - arccos
541
+ - arccosh
542
+ - argmax
543
+ - angle
544
+ - arcsin
545
+ - arcsinh
546
+ - arctan
547
+ - arctanh
548
+ - argmin
549
+ - argsort
550
+ - asin
551
+ - asinh
552
+ - atan
553
+ - atan2
554
+ - atanh
555
+ - baddbmm
556
+ - bernoulli
557
+ - bincount
558
+ - bitwise_and
559
+ - bitwise_or
560
+ - bitwise_xor
561
+ - bmm
562
+ - bool
563
+ - broadcast_to
564
+ - ceil
565
+ - cholesky_solve
566
+ - cholesky
567
+ - clamp
568
+ - clip
569
+ - conj
570
+ - copysign
571
+ - cos
572
+ - cosh
573
+ - cross
574
+ - cummax
575
+ - cummin
576
+ - cumprod
577
+ - cumsum
578
+ - deg2rad
579
+ - diag
580
+ - diagflat
581
+ - diff
582
+ - digamma
583
+ - div
584
+ - divide
585
+ - equal
586
+ - erf
587
+ - erfc
588
+ - erfinv
589
+ - exp
590
+ - expand_as
591
+ - expm1
592
+ - flip
593
+ - fliplr
594
+ - flipud
595
+ - float_power
596
+ - floor
597
+ - fmod
598
+ - frac
599
+ - gather_elements
600
+ - ge
601
+ - geqrf
602
+ - ger
603
+ - greater
604
+ - greater_equal
605
+ - gt
606
+ - half
607
+ - hardshrink
608
+ - heaviside
609
+ - histc
610
+ - hypot
611
+ - i0
612
+ - igamma
613
+ - igammac
614
+ - imag
615
+ - index_add
616
+ - index_fill
617
+ - index_put
618
+ - index_select
619
+ - inner
620
+ - int
621
+ - inverse
622
+ - isclose
623
+ - isfinite
624
+ - isinf
625
+ - isnan
626
+ - is_complex
627
+ - is_signed
628
+ - isneginf
629
+ - isposinf
630
+ - isreal
631
+ - lcm
632
+ - ldexp
633
+ - le
634
+ - lerp
635
+ - less
636
+ - less_equal
637
+ - log
638
+ - log10
639
+ - log1p
640
+ - log2
641
+ - logaddexp
642
+ - logaddexp2
643
+ - logdet
644
+ - logical_and
645
+ - logical_not
646
+ - logical_or
647
+ - logical_xor
648
+ - logit
649
+ - logsumexp
650
+ - long
651
+ - lt
652
+ - masked_fill
653
+ - masked_scatter
654
+ - masked_select
655
+ - matmul
656
+ - max
657
+ - maximum
658
+ - mean
659
+ - median
660
+ - min
661
+ - minimum
662
+ - moveaxis
663
+ - movedim
664
+ - msort
665
+ - multinomial
666
+ - multiply
667
+ - mvlgamma
668
+ - nan_to_num
669
+ - nansum
670
+ - narrow
671
+ - ne
672
+ - neg
673
+ - negative
674
+ - nelement
675
+ - new_ones
676
+ - new_zeros
677
+ - nextafter
678
+ - norm
679
+ - nonzero
680
+ - not_equal
681
+ - ormqr
682
+ - permute
683
+ - pow
684
+ - prod
685
+ - qr
686
+ - ravel
687
+ - real
688
+ - reciprocal
689
+ - remainder
690
+ - renorm
691
+ - rad2deg
692
+ - tile
693
+ - repeat_interleave
694
+ - reshape
695
+ - reshape
696
+ - round
697
+ - rot90
698
+ - rsqrt
699
+ - sum_to_size
700
+ - scatter
701
+ - sgn
702
+ - short
703
+ - sigmoid
704
+ - sign
705
+ - signbit
706
+ - sin
707
+ - sinc
708
+ - sinh
709
+ - slogdet
710
+ - sort
711
+ - split
712
+ - sqrt
713
+ - square
714
+ - squeeze
715
+ - std
716
+ - subtract
717
+ - subtract
718
+ - svd
719
+ - swapaxes
720
+ - swapdims
721
+ - t
722
+ - take
723
+ - tan
724
+ - tanh
725
+ - trace
726
+ - swapaxes
727
+ - tile
728
+ - topk
729
+ - tril
730
+ - tensor_split
731
+ - transpose
732
+ - true_divide
733
+ - trunc
734
+ - unbind
735
+ - unique_consecutive
736
+ - unsqueeze
737
+ - var
738
+ - view
739
+ - where
740
+ - xlogy
741
+ - from_numpy
742
+ - std
743
+ - take
744
+ - var
745
+ - all
746
+ - any
747
+ - copy
748
+ - diagonal
749
+ - flatten
750
+ - resize
751
+ - sum
752
+
753
+ mint.ops:
754
+ - abs
755
+ - absolute_import
756
+ - add
757
+ - add_ex
758
+ - all
759
+ - any
760
+ - any_ex
761
+ - argmax
762
+ - avg_pool2d
763
+ - baddbmm
764
+ - baddbmm_ex
765
+ - batch_norm
766
+ - binary_cross_entropy_with_logits
767
+ - bitwise_and
768
+ - bitwise_or
769
+ - bitwise_xor
770
+ - bmm
771
+ - broadcast_to
772
+ - cat
773
+ - cat_ex
774
+ - ceil
775
+ - chunk
776
+ - clamp
777
+ - conv2d
778
+ - conv_transpose2d
779
+ - cos
780
+ - cross
781
+ - cummax
782
+ - cummin
783
+ - cumsum
784
+ - div
785
+ - divide
786
+ - dropout
787
+ - embedding
788
+ - eq
789
+ - erf
790
+ - erfinv
791
+ - exp
792
+ - flatten
793
+ - flip
794
+ - flip_ex
795
+ - fold
796
+ - full
797
+ - functional
798
+ - gather
799
+ - gelu
800
+ - greater
801
+ - grid_sample
802
+ - group_norm
803
+ - gt
804
+ - index_select
805
+ - interpolate
806
+ - isclose
807
+ - isfinite
808
+ - layer_norm
809
+ - le
810
+ - leaky_relu
811
+ - less
812
+ - less_equal
813
+ - linear
814
+ - linspace
815
+ - log
816
+ - logical_and
817
+ - logical_not
818
+ - logical_or
819
+ - lt
820
+ - masked_select
821
+ - matmul
822
+ - max
823
+ - max_pool2d
824
+ - maximum
825
+ - mean
826
+ - mean_ex
827
+ - min
828
+ - minimum
829
+ - mul
830
+ - ne
831
+ - neg
832
+ - negative
833
+ - nn
834
+ - nonzero
835
+ - normal
836
+ - one_hot
837
+ - ones
838
+ - ones_ex
839
+ - ones_like
840
+ - pad
841
+ - permute
842
+ - permute_ex
843
+ - pow
844
+ - prod
845
+ - reciprocal
846
+ - relu
847
+ - remainder
848
+ - repeat_interleave
849
+ - rsqrt
850
+ - scatter
851
+ - scatter_add
852
+ - searchsorted
853
+ - sigmoid
854
+ - silu
855
+ - sin
856
+ - softmax
857
+ - softplus
858
+ - sort
859
+ - split
860
+ - sqrt
861
+ - sqrt_ex
862
+ - square
863
+ - stack
864
+ - sub
865
+ - sub_ex
866
+ - sum
867
+ - tanh
868
+ - tile
869
+ - topk
870
+ - tril
871
+ - triu
872
+ - unfold
873
+ - unique
874
+ - where
875
+ - xlogy
876
+ - zeros
877
+ - zeros_ex
878
+ - zeros_like
879
+
880
+ mint.nn:
881
+ - Dropout
882
+ - Embedding
883
+ - Fold
884
+ - LayerNorm
885
+ - Linear
886
+ - MaxPool2d
887
+ - Unfold
888
+ - Upsample
889
+
890
+ mint.nn.functional:
891
+ - absolute_import
892
+ - avg_pool2d
893
+ - batch_norm
894
+ - batch_norm_ex
895
+ - bce_with_logits
896
+ - binary_cross_entropy_with_logits
897
+ - conv_transpose2d
898
+ - dense
899
+ - dropout
900
+ - embedding
901
+ - fold
902
+ - gelu
903
+ - grid_sample
904
+ - group_norm
905
+ - interpolate
906
+ - layer_norm
907
+ - leaky_relu
908
+ - linear
909
+ - max_pool2d
910
+ - max_pool2d_ex
911
+ - normal
912
+ - one_hot
913
+ - one_hot_ext
914
+ - pad
915
+ - relu
916
+ - sigmoid
917
+ - silu
918
+ - softmax
919
+ - softmax_ex
920
+ - softplus
921
+ - tanh
922
+ - unfold