mindspore 2.3.0__cp39-none-any.whl → 2.3.0rc2__cp39-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.

Potentially problematic release.


This version of mindspore might be problematic. Click here for more details.

Files changed (423) hide show
  1. mindspore/.commit_id +1 -1
  2. mindspore/Third_Party_Open_Source_Software_Notice +0 -1512
  3. mindspore/__init__.py +1 -2
  4. mindspore/_c_dataengine.cpython-39-aarch64-linux-gnu.so +0 -0
  5. mindspore/_c_expression.cpython-39-aarch64-linux-gnu.so +0 -0
  6. mindspore/_c_mindrecord.cpython-39-aarch64-linux-gnu.so +0 -0
  7. mindspore/_checkparam.py +25 -5
  8. mindspore/_extends/graph_kernel/model/graph_parallel.py +1 -1
  9. mindspore/_extends/parse/__init__.py +2 -2
  10. mindspore/_extends/parse/compile_config.py +0 -29
  11. mindspore/_extends/parse/namespace.py +2 -2
  12. mindspore/_extends/parse/parser.py +5 -21
  13. mindspore/_extends/parse/resources.py +7 -5
  14. mindspore/_extends/parse/standard_method.py +59 -40
  15. mindspore/_mindspore_offline_debug.cpython-39-aarch64-linux-gnu.so +0 -0
  16. mindspore/amp.py +5 -26
  17. mindspore/bin/cache_admin +0 -0
  18. mindspore/bin/cache_server +0 -0
  19. mindspore/boost/adasum.py +1 -1
  20. mindspore/boost/base.py +1 -1
  21. mindspore/boost/boost_cell_wrapper.py +1 -1
  22. mindspore/boost/grad_freeze.py +2 -2
  23. mindspore/boost/less_batch_normalization.py +6 -9
  24. mindspore/common/__init__.py +1 -8
  25. mindspore/common/_register_for_tensor.py +9 -8
  26. mindspore/common/api.py +65 -275
  27. mindspore/common/dtype.py +4 -8
  28. mindspore/common/dump.py +5 -2
  29. mindspore/common/jit_config.py +1 -1
  30. mindspore/common/lazy_inline.py +2 -14
  31. mindspore/common/parameter.py +15 -14
  32. mindspore/common/recompute.py +5 -20
  33. mindspore/common/sparse_tensor.py +6 -21
  34. mindspore/common/tensor.py +52 -100
  35. mindspore/communication/__init__.py +11 -6
  36. mindspore/communication/management.py +94 -92
  37. mindspore/context.py +18 -180
  38. mindspore/dataset/engine/datasets.py +46 -69
  39. mindspore/dataset/engine/datasets_user_defined.py +53 -72
  40. mindspore/dataset/engine/datasets_vision.py +2 -2
  41. mindspore/dataset/engine/queue.py +38 -56
  42. mindspore/dataset/engine/validators.py +5 -11
  43. mindspore/dataset/vision/__init__.py +5 -5
  44. mindspore/dataset/vision/c_transforms.py +5 -5
  45. mindspore/dataset/vision/py_transforms_util.py +1 -1
  46. mindspore/dataset/vision/transforms.py +46 -591
  47. mindspore/dataset/vision/utils.py +1 -121
  48. mindspore/dataset/vision/validators.py +3 -9
  49. mindspore/hal/__init__.py +1 -7
  50. mindspore/hal/device.py +1 -1
  51. mindspore/include/api/model.h +0 -3
  52. mindspore/include/dataset/vision.h +2 -54
  53. mindspore/include/mindapi/base/types.h +0 -1
  54. mindspore/lib/libdnnl.so.2 +0 -0
  55. mindspore/lib/libmindspore.so +0 -0
  56. mindspore/lib/libmindspore_backend.so +0 -0
  57. mindspore/lib/libmindspore_common.so +0 -0
  58. mindspore/lib/libmindspore_core.so +0 -0
  59. mindspore/lib/libmindspore_glog.so.0 +0 -0
  60. mindspore/lib/libmindspore_gpr.so.15 +0 -0
  61. mindspore/lib/libmindspore_grpc++.so.1 +0 -0
  62. mindspore/lib/libmindspore_grpc.so.15 +0 -0
  63. mindspore/lib/libmindspore_shared_lib.so +0 -0
  64. mindspore/lib/libmpi_adapter.so +0 -0
  65. mindspore/lib/libmpi_collective.so +0 -0
  66. mindspore/lib/libnnacl.so +0 -0
  67. mindspore/lib/libopencv_core.so.4.5 +0 -0
  68. mindspore/lib/libps_cache.so +0 -0
  69. mindspore/lib/plugin/ascend/custom_aicore_ops/op_impl/ai_core/tbe/config/ascend310p/aic-ascend310p-ops-info.json +0 -35
  70. mindspore/lib/plugin/ascend/custom_aicore_ops/op_impl/ai_core/tbe/custom_aicore_ops_impl/kv_cache_mgr.py +0 -2
  71. mindspore/lib/plugin/ascend/custom_aicore_ops/op_impl/vector_core/tbe/custom_aicore_ops_impl/kv_cache_mgr.py +0 -2
  72. mindspore/lib/plugin/ascend/custom_aicpu_ops/op_impl/cpu/aicpu_kernel/impl/libcust_cpu_kernels.so +0 -0
  73. mindspore/lib/plugin/ascend/custom_aicpu_ops/op_impl/cpu/config/cust_aicpu_kernel.json +0 -72
  74. mindspore/lib/plugin/ascend/custom_aicpu_ops/op_proto/libcust_op_proto.so +0 -0
  75. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_api/include/{aclnn_all_finite.h → aclnn_add_custom.h} +11 -9
  76. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_api/include/aclnn_decoder_kv_cache.h +1 -1
  77. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_api/include/aclnn_prompt_kv_cache.h +1 -1
  78. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_api/lib/libcust_opapi.so +0 -0
  79. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/config/ascend310p/aic-ascend310p-ops-info.json +12 -184
  80. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/config/ascend910/aic-ascend910-ops-info.json +15 -7
  81. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/config/ascend910b/aic-ascend910b-ops-info.json +15 -7
  82. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/add_custom.cpp +81 -0
  83. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/add_custom.py +134 -0
  84. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/decoder_kv_cache.py +31 -77
  85. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/prompt_kv_cache.py +31 -77
  86. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/op_tiling/lib/linux/aarch64/libcust_opmaster_rt2.0.so +0 -0
  87. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/op_tiling/liboptiling.so +0 -0
  88. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_proto/inc/op_proto.h +5 -4
  89. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_proto/lib/linux/aarch64/libcust_opsproto_rt2.0.so +0 -0
  90. mindspore/lib/plugin/ascend/libascend_collective.so +0 -0
  91. mindspore/lib/plugin/ascend/libdvpp_utils.so +0 -0
  92. mindspore/lib/plugin/ascend/libhccl_plugin.so +0 -0
  93. mindspore/lib/plugin/ascend/liblowlatency_collective.so +0 -0
  94. mindspore/lib/plugin/ascend/libmindspore_cpu_kernels.so +0 -0
  95. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/DeviceBin +0 -0
  96. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/PkgInspect +0 -0
  97. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/op_man +0 -0
  98. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/device/ascend910b/bin/ascend910b.bin +286 -275
  99. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/host/libasdops_cann_host.so +0 -0
  100. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/host/libasdops_host.so +0 -0
  101. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/lib/libasdops.so +0 -0
  102. mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/lib/libasdops_static.a +0 -0
  103. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/add/add_impl.h +0 -1
  104. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/apply_rotary_pos_emb_impl.h +0 -1
  105. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/asdop/asd_op_impl.h +0 -3
  106. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/backend_param.h +0 -5
  107. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/cast/cast_tiling.h +45 -1
  108. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/compare/compare_impl.h +0 -1
  109. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/flash_attention_score/flash_attention_score_impl.h +4 -8
  110. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/flash_attention_score/flash_attention_score_tiling.h +4 -11
  111. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/flash_attention_score/kernel/flash_attention_score_mix_hwsync.h +0 -18
  112. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/internal_kernel.h +0 -6
  113. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/internal_rtbackend.h +75 -1
  114. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul/kernel/matmul.h +5 -5
  115. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul/matmul_impl.h +3 -18
  116. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_common/pp_matmul_common_tiling.h +5 -5
  117. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_common/pp_matmul_info.h +2 -2
  118. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_common/tiling_data.h +3 -36
  119. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_stridedslice/kernel/matmul_stridedslice_fusion.h +2 -2
  120. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_stridedslice/matmul_stridedslice_fusion_impl.h +4 -22
  121. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/op_param.h +2 -16
  122. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/paged_attention/kernel/paged_attention_mix_hwsync.h +3 -1
  123. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/paged_attention/paged_attention_impl.h +4 -5
  124. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/paged_attention/paged_attention_tiling.h +4 -9
  125. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/attention_param.h +2 -5
  126. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/matmul_ext_param.h +0 -1
  127. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/matmul_qkv_param.h +4 -10
  128. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/sub_param.h +12 -0
  129. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/rms_norm_impl.h +0 -1
  130. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/sub/sub_impl.h +0 -1
  131. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/tune_repo/matmul_table.h +1 -1
  132. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/backend.h +2 -10
  133. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/elewise_utils.h +1 -5
  134. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/log/log.h +0 -1
  135. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/log/log_tiling.h +0 -17
  136. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/math.h +7 -2
  137. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libAdd_impl.so +0 -0
  138. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libSub_impl.so +0 -0
  139. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libadd_layernorm_impl.so +0 -0
  140. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libadd_rms_norm_impl.so +0 -0
  141. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libapply_rotary_pos_emb_impl.so +0 -0
  142. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libcast_impl.so +0 -0
  143. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libgelu_impl.so +0 -0
  144. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libmatmul_impl.so +0 -0
  145. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libmatmul_stridedslice_fusion_impl.so +0 -0
  146. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libms_kernels_internal.so +0 -0
  147. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libnot_equal_impl.so +0 -0
  148. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libreshape_and_cache_impl.so +0 -0
  149. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/librms_norm_impl.so +0 -0
  150. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bnsd_full_mix.o +0 -0
  151. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bnsd_tri_mix.o +0 -0
  152. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bsh_full_mix.o +0 -0
  153. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bsh_tri_mix.o +0 -0
  154. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bnsd_full_mix.o +0 -0
  155. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bnsd_tri_mix.o +0 -0
  156. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bsh_full_mix.o +0 -0
  157. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bsh_tri_mix.o +0 -0
  158. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_bf16_bnsd_full_mix.o +0 -0
  159. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_bf16_bsh_full_mix.o +0 -0
  160. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_fp16_bnsd_full_mix.o +0 -0
  161. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_fp16_bsh_full_mix.o +0 -0
  162. mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/lib/liblcal.so +0 -0
  163. mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/lib/liblccl_wrapper.so +0 -0
  164. mindspore/lib/plugin/libmindspore_ascend.so.2 +0 -0
  165. mindspore/mindrecord/filewriter.py +2 -2
  166. mindspore/mint/__init__.py +40 -720
  167. mindspore/mint/nn/__init__.py +7 -89
  168. mindspore/mint/nn/functional.py +16 -165
  169. mindspore/mint/optim/adamw.py +16 -15
  170. mindspore/nn/__init__.py +2 -0
  171. mindspore/nn/cell.py +98 -97
  172. mindspore/nn/extend/basic.py +2 -2
  173. mindspore/nn/extend/embedding.py +1 -1
  174. mindspore/nn/extend/layer/normalization.py +5 -7
  175. mindspore/nn/generator.py +297 -0
  176. mindspore/nn/layer/activation.py +3 -4
  177. mindspore/nn/layer/basic.py +16 -79
  178. mindspore/nn/layer/conv.py +8 -17
  179. mindspore/nn/layer/embedding.py +4 -1
  180. mindspore/nn/layer/math.py +1 -1
  181. mindspore/nn/layer/normalization.py +1 -1
  182. mindspore/nn/layer/pooling.py +0 -5
  183. mindspore/nn/layer/rnn_cells.py +2 -2
  184. mindspore/nn/loss/loss.py +19 -19
  185. mindspore/nn/optim/adasum.py +1 -1
  186. mindspore/nn/optim/sgd.py +2 -3
  187. mindspore/nn/probability/distribution/exponential.py +1 -1
  188. mindspore/nn/probability/distribution/geometric.py +1 -1
  189. mindspore/nn/probability/distribution/logistic.py +1 -1
  190. mindspore/nn/wrap/cell_wrapper.py +1 -25
  191. mindspore/nn/wrap/loss_scale.py +1 -24
  192. mindspore/numpy/array_ops.py +1 -5
  193. mindspore/numpy/dtypes.py +3 -3
  194. mindspore/numpy/math_ops.py +8 -8
  195. mindspore/ops/__init__.py +1 -1
  196. mindspore/ops/_grad_experimental/grad_comm_ops.py +16 -75
  197. mindspore/ops/_vmap/vmap_array_ops.py +0 -27
  198. mindspore/ops/_vmap/vmap_math_ops.py +1 -29
  199. mindspore/ops/_vmap/vmap_nn_ops.py +18 -19
  200. mindspore/ops/auto_generate/cpp_create_prim_instance_helper.py +8 -34
  201. mindspore/ops/auto_generate/gen_arg_dtype_cast.py +9 -2
  202. mindspore/ops/auto_generate/gen_arg_handler.py +0 -26
  203. mindspore/ops/auto_generate/gen_extend_func.py +27 -603
  204. mindspore/ops/auto_generate/gen_ops_def.py +203 -993
  205. mindspore/ops/auto_generate/gen_ops_prim.py +402 -1946
  206. mindspore/ops/auto_generate/pyboost_inner_prim.py +20 -90
  207. mindspore/ops/composite/base.py +6 -3
  208. mindspore/ops/composite/math_ops.py +1 -1
  209. mindspore/ops/composite/multitype_ops/_compile_utils.py +17 -24
  210. mindspore/ops/composite/multitype_ops/_constexpr_utils.py +1 -1
  211. mindspore/ops/extend/__init__.py +3 -2
  212. mindspore/ops/extend/array_func.py +51 -10
  213. mindspore/ops/extend/nn_func.py +78 -2
  214. mindspore/ops/function/__init__.py +13 -8
  215. mindspore/ops/function/array_func.py +179 -455
  216. mindspore/ops/function/clip_func.py +1 -1
  217. mindspore/ops/function/grad/grad_func.py +3 -3
  218. mindspore/ops/function/math_func.py +103 -117
  219. mindspore/ops/function/nn_func.py +163 -275
  220. mindspore/ops/function/other_func.py +2 -2
  221. mindspore/ops/function/random_func.py +69 -202
  222. mindspore/ops/function/sparse_func.py +4 -4
  223. mindspore/ops/functional.py +327 -332
  224. mindspore/ops/operations/__init__.py +3 -13
  225. mindspore/ops/operations/_grad_ops.py +27 -3
  226. mindspore/ops/operations/_inner_ops.py +356 -53
  227. mindspore/ops/operations/_rl_inner_ops.py +2 -2
  228. mindspore/ops/operations/_tensor_array.py +8 -8
  229. mindspore/ops/operations/array_ops.py +65 -82
  230. mindspore/ops/operations/comm_ops.py +93 -784
  231. mindspore/ops/operations/custom_ops.py +28 -51
  232. mindspore/ops/operations/debug_ops.py +4 -4
  233. mindspore/ops/operations/inner_ops.py +2 -2
  234. mindspore/ops/operations/manually_defined/ops_def.py +4 -304
  235. mindspore/ops/operations/math_ops.py +50 -3
  236. mindspore/ops/operations/nn_ops.py +247 -14
  237. mindspore/ops/operations/other_ops.py +3 -3
  238. mindspore/ops/operations/random_ops.py +1 -1
  239. mindspore/ops/operations/sparse_ops.py +1 -1
  240. mindspore/ops/primitive.py +8 -9
  241. mindspore/ops/silent_check.py +5 -5
  242. mindspore/ops_generate/arg_dtype_cast.py +9 -2
  243. mindspore/ops_generate/arg_handler.py +0 -26
  244. mindspore/ops_generate/gen_aclnn_implement.py +4 -1
  245. mindspore/ops_generate/gen_ops.py +4 -26
  246. mindspore/ops_generate/gen_pyboost_func.py +12 -41
  247. mindspore/ops_generate/gen_utils.py +0 -21
  248. mindspore/ops_generate/pyboost_utils.py +2 -7
  249. mindspore/ops_generate/template.py +0 -1
  250. mindspore/parallel/_auto_parallel_context.py +1 -21
  251. mindspore/parallel/_tensor.py +5 -0
  252. mindspore/parallel/_transformer/transformer.py +1 -1
  253. mindspore/parallel/_utils.py +1 -15
  254. mindspore/parallel/algo_parameter_config.py +3 -1
  255. mindspore/parallel/checkpoint_transform.py +9 -12
  256. mindspore/parallel/cluster/process_entity/_api.py +29 -28
  257. mindspore/parallel/cluster/process_entity/_utils.py +3 -13
  258. mindspore/parallel/cluster/run.py +16 -13
  259. mindspore/parallel/parameter_broadcast.py +2 -2
  260. mindspore/parallel/shard.py +17 -31
  261. mindspore/profiler/__init__.py +2 -3
  262. mindspore/profiler/common/util.py +2 -107
  263. mindspore/profiler/envprofiling.py +1 -1
  264. mindspore/profiler/parser/ascend_analysis/constant.py +21 -8
  265. mindspore/profiler/parser/ascend_analysis/file_manager.py +0 -82
  266. mindspore/profiler/parser/ascend_analysis/function_event.py +28 -43
  267. mindspore/profiler/parser/ascend_analysis/fwk_cann_parser.py +27 -49
  268. mindspore/profiler/parser/ascend_analysis/fwk_file_parser.py +10 -15
  269. mindspore/profiler/parser/ascend_analysis/msprof_timeline_parser.py +20 -25
  270. mindspore/profiler/parser/ascend_analysis/profiler_info_parser.py +5 -5
  271. mindspore/profiler/parser/ascend_analysis/trace_event_manager.py +1 -10
  272. mindspore/profiler/parser/ascend_hccl_generator.py +1 -4
  273. mindspore/profiler/parser/ascend_msprof_exporter.py +22 -43
  274. mindspore/profiler/parser/ascend_timeline_generator.py +5 -7
  275. mindspore/profiler/parser/minddata_parser.py +3 -72
  276. mindspore/profiler/profiling.py +59 -176
  277. mindspore/rewrite/api/node.py +1 -1
  278. mindspore/rewrite/common/namespace.py +5 -5
  279. mindspore/rewrite/parsers/assign_parser.py +0 -2
  280. mindspore/rewrite/parsers/class_def_parser.py +4 -8
  281. mindspore/run_check/_check_version.py +1 -1
  282. mindspore/scipy/fft.py +3 -1
  283. mindspore/scipy/linalg.py +3 -2
  284. mindspore/scipy/ops.py +3 -5
  285. mindspore/scipy/optimize/__init__.py +2 -2
  286. mindspore/train/__init__.py +4 -4
  287. mindspore/train/anf_ir_pb2.py +2 -8
  288. mindspore/train/callback/__init__.py +2 -5
  289. mindspore/train/callback/_backup_and_restore.py +2 -2
  290. mindspore/train/callback/_checkpoint.py +16 -104
  291. mindspore/train/callback/_landscape.py +1 -1
  292. mindspore/train/callback/_time_monitor.py +1 -1
  293. mindspore/train/data_sink.py +4 -5
  294. mindspore/train/dataset_helper.py +20 -45
  295. mindspore/train/model.py +38 -266
  296. mindspore/train/serialization.py +105 -256
  297. mindspore/train/summary/_summary_adapter.py +1 -1
  298. mindspore/version.py +1 -1
  299. {mindspore-2.3.0.dist-info → mindspore-2.3.0rc2.dist-info}/METADATA +2 -2
  300. {mindspore-2.3.0.dist-info → mindspore-2.3.0rc2.dist-info}/RECORD +303 -420
  301. mindspore/_extends/pijit/__init__.py +0 -23
  302. mindspore/_extends/pijit/pijit_func_white_list.py +0 -343
  303. mindspore/common/file_system.py +0 -48
  304. mindspore/common/generator.py +0 -260
  305. mindspore/common/no_inline.py +0 -54
  306. mindspore/common/np_dtype.py +0 -25
  307. mindspore/communication/comm_func.py +0 -1140
  308. mindspore/hal/memory.py +0 -326
  309. mindspore/lib/libavcodec.so.59 +0 -0
  310. mindspore/lib/libavdevice.so.59 +0 -0
  311. mindspore/lib/libavfilter.so.8 +0 -0
  312. mindspore/lib/libavformat.so.59 +0 -0
  313. mindspore/lib/libavutil.so.57 +0 -0
  314. mindspore/lib/libmindspore_np_dtype.so +0 -0
  315. mindspore/lib/libswresample.so.4 +0 -0
  316. mindspore/lib/libswscale.so.6 +0 -0
  317. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/all_finite.cpp +0 -326
  318. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/custom_ascendc_ops_impl/dynamic/all_finite.py +0 -180
  319. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_576ceaeef5870c451cab59af55ea46ad.json +0 -58
  320. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_576ceaeef5870c451cab59af55ea46ad.o +0 -0
  321. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_86a73ff6e28d734c96bb8d3054f7dd18.json +0 -58
  322. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_86a73ff6e28d734c96bb8d3054f7dd18.o +0 -0
  323. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_f55e0ebaad1f2f572e43677336992fa0.json +0 -58
  324. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/ascend910b/all_finite/AllFinite_f55e0ebaad1f2f572e43677336992fa0.o +0 -0
  325. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/config/ascend910b/all_finite.json +0 -109
  326. mindspore/lib/plugin/ascend/custom_ascendc_ops/op_impl/ai_core/tbe/kernel/config/ascend910b/binary_info_config.json +0 -38
  327. mindspore/lib/plugin/ascend/custom_compiler/OWNERS +0 -12
  328. mindspore/lib/plugin/ascend/custom_compiler/setup.py +0 -255
  329. mindspore/lib/plugin/ascend/custom_compiler/start.sh +0 -26
  330. mindspore/lib/plugin/ascend/custom_compiler/template.json +0 -40
  331. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/acme.h +0 -24
  332. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/acme_op.h +0 -69
  333. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/base_type.h +0 -133
  334. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/op_creator.h +0 -32
  335. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/op_param.h +0 -35
  336. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/include/tiling_info.h +0 -60
  337. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/core/kernel_register.h +0 -37
  338. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/core/platform/platform_configs.h +0 -89
  339. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/core/platform/rt_funcs.h +0 -135
  340. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/add_op.h +0 -34
  341. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/asd_backoff_base.h +0 -62
  342. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/asd_elewise_op.h +0 -33
  343. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/asd_ops.h +0 -88
  344. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/asd_pa_op.h +0 -45
  345. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/cast_op.h +0 -52
  346. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/ops/host_src/matmul_op.h +0 -95
  347. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/utils/asd_utils.h +0 -84
  348. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/acme/src/utils/comm_utils.h +0 -61
  349. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_fp32.h +0 -224
  350. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/and_impl.h +0 -29
  351. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/div_impl.h +0 -29
  352. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/elewise_binary_impl.h +0 -48
  353. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/elewise_binary_tiling.h +0 -25
  354. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/and_kernel.h +0 -46
  355. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/div_kernel.h +0 -46
  356. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/elewise_binary_base.h +0 -260
  357. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/elewise_binary_kernel.h +0 -35
  358. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/max_kernel.h +0 -66
  359. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/min_kernel.h +0 -66
  360. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/mul_kernel.h +0 -66
  361. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/kernel/or_kernel.h +0 -46
  362. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/max_impl.h +0 -29
  363. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/min_impl.h +0 -29
  364. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/mul_impl.h +0 -29
  365. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_binary/or_impl.h +0 -29
  366. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/abs_impl.h +0 -29
  367. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/elewise_unary_impl.h +0 -47
  368. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/elewise_unary_tiling.h +0 -24
  369. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/exp_impl.h +0 -29
  370. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/abs_kernel.h +0 -45
  371. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/elewise_unary_base.h +0 -148
  372. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/elewise_unary_kernel.h +0 -31
  373. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/exp_kernel.h +0 -45
  374. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/ln_kernel.h +0 -45
  375. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/not_kernel.h +0 -45
  376. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/reciprocal_kernel.h +0 -45
  377. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/relu_kernel.h +0 -55
  378. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/rsqrt_kernel.h +0 -45
  379. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/kernel/sqrt_kernel.h +0 -45
  380. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/ln_impl.h +0 -29
  381. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/not_impl.h +0 -29
  382. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/reciprocal_impl.h +0 -29
  383. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/relu_impl.h +0 -29
  384. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/rsqrt_impl.h +0 -29
  385. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/elewise_unary/sqrt_impl.h +0 -29
  386. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/grouped_matmul_impl.h +0 -45
  387. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/grouped_matmul_tiling.h +0 -187
  388. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/kernel/grouped_matmul.h +0 -245
  389. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/kernel/grouped_matmul_interface.h +0 -24
  390. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/kernel/grouped_matmul_utils.h +0 -111
  391. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/grouped_matmul/tiling_data.h +0 -54
  392. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/compare_param.h +0 -31
  393. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/elewise_param.h +0 -41
  394. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/grouped_matmul_param.h +0 -40
  395. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/profiling_util.h +0 -364
  396. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/log/log_utils.h +0 -69
  397. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/register/kernel_creator.h +0 -39
  398. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/register/kernel_registry.h +0 -114
  399. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/utils.h +0 -98
  400. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MatMulPostFusionMixTactic/matmul_postfusion_mix.json +0 -19
  401. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MatMulPostFusionMixTactic/matmul_postfusion_mix.o +0 -0
  402. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MatMulPostFusionMixTactic/matmul_postfusion_mix_mix_aic_0.o +0 -0
  403. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MatMulPostFusionMixTactic/matmul_postfusion_mix_mix_aiv_0.o +0 -0
  404. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MultiMatMulPostFusionMixTactic/multi_matmul_postfusion_mix.json +0 -19
  405. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MultiMatMulPostFusionMixTactic/multi_matmul_postfusion_mix.o +0 -0
  406. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MultiMatMulPostFusionMixTactic/multi_matmul_postfusion_mix_mix_aic_0.o +0 -0
  407. mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/MultiMatMulPostFusionMixTactic/multi_matmul_postfusion_mix_mix_aiv_0.o +0 -0
  408. mindspore/mint/linalg/__init__.py +0 -22
  409. mindspore/nn/layer/embedding_service.py +0 -531
  410. mindspore/nn/layer/embedding_service_layer.py +0 -393
  411. mindspore/ops/function/reshard_func.py +0 -102
  412. mindspore/ops/operations/_infer_ops.py +0 -19
  413. mindspore/ops/operations/reshard_ops.py +0 -53
  414. mindspore/profiler/common/process_pool.py +0 -41
  415. mindspore/profiler/common/singleton.py +0 -28
  416. mindspore/profiler/parser/ascend_integrate_generator.py +0 -42
  417. mindspore/profiler/parser/ascend_memory_generator.py +0 -185
  418. mindspore/train/callback/_cluster_monitor.py +0 -201
  419. mindspore/train/callback/_flops_collector.py +0 -238
  420. mindspore/train/callback/_mindio_ttp.py +0 -443
  421. {mindspore-2.3.0.dist-info → mindspore-2.3.0rc2.dist-info}/WHEEL +0 -0
  422. {mindspore-2.3.0.dist-info → mindspore-2.3.0rc2.dist-info}/entry_points.txt +0 -0
  423. {mindspore-2.3.0.dist-info → mindspore-2.3.0rc2.dist-info}/top_level.txt +0 -0
@@ -20,8 +20,7 @@ from mindspore.common._register_for_tensor import tensor_operator_registry
20
20
  from mindspore.ops import _constants
21
21
  from mindspore.ops.function import *
22
22
  from mindspore.ops.function.array_func import narrow, flatten
23
- from mindspore.ops.function.math_func import all, argmax_ext
24
- from mindspore.ops.function.random_func import uniform_ext
23
+ from mindspore.ops.function.math_func import all, argmax
25
24
  from mindspore.ops import operations as P
26
25
  from mindspore.ops.operations import array_ops
27
26
  from mindspore.ops.operations._sequence_ops import TensorToTuple
@@ -116,339 +115,335 @@ reduced_shape = Primitive("reduced_shape")
116
115
  # shape_mul:input must be shape multiply elements in tuple(shape)
117
116
  shape_mul = _sequence_ops.shape_mul()
118
117
 
119
- setattr(tensor_operator_registry, 'tuple_to_tensor', _sequence_ops.TupleToTensor)
120
- setattr(tensor_operator_registry, 'add', add)
121
- setattr(tensor_operator_registry, 'softmax', softmax)
122
- setattr(tensor_operator_registry, 'addr', addr)
123
- setattr(tensor_operator_registry, 'addcdiv', addcdiv)
124
- setattr(tensor_operator_registry, 'addcmul', addcmul)
125
- setattr(tensor_operator_registry, 'all', all)
126
- setattr(tensor_operator_registry, 'angle', angle)
127
- setattr(tensor_operator_registry, 'any', any)
128
- setattr(tensor_operator_registry, 'atan2', atan2)
129
- setattr(tensor_operator_registry, 'abs', abs)
130
- setattr(tensor_operator_registry, 'baddbmm', baddbmm)
131
- setattr(tensor_operator_registry, 'geqrf', geqrf)
132
- setattr(tensor_operator_registry, 'histc', histc)
133
- setattr(tensor_operator_registry, 'real', real)
134
- setattr(tensor_operator_registry, 'reciprocal', reciprocal)
135
- setattr(tensor_operator_registry, 'rsqrt', rsqrt)
136
- setattr(tensor_operator_registry, 'bincount', bincount)
137
- setattr(tensor_operator_registry, 'slogdet', slogdet)
138
- setattr(tensor_operator_registry, 'trace', trace)
139
- setattr(tensor_operator_registry, 'tril', tril)
140
- setattr(tensor_operator_registry, 'chunk', chunk)
141
- setattr(tensor_operator_registry, 'count_nonzero', count_nonzero)
142
- setattr(tensor_operator_registry, 'sqrt', sqrt)
143
- setattr(tensor_operator_registry, 'square', square)
144
- setattr(tensor_operator_registry, 'sub', sub)
145
- setattr(tensor_operator_registry, 'triu', triu)
146
- setattr(tensor_operator_registry, 'tan', tan)
147
- setattr(tensor_operator_registry, 't', t)
148
- setattr(tensor_operator_registry, 'cauchy', P.Cauchy)
149
- setattr(tensor_operator_registry, 'log_normal', P.LogNormalReverse)
150
- setattr(tensor_operator_registry, 'acos', acos)
151
- setattr(tensor_operator_registry, 'cos', cos)
152
- setattr(tensor_operator_registry, 'acosh', acosh)
153
- setattr(tensor_operator_registry, 'cosh', cosh)
154
- setattr(tensor_operator_registry, 'cov', cov)
155
- setattr(tensor_operator_registry, 'asin', asin)
156
- setattr(tensor_operator_registry, 'sin', sin)
157
- setattr(tensor_operator_registry, 'sinc', sinc)
158
- setattr(tensor_operator_registry, 'pow', pow)
159
- setattr(tensor_operator_registry, 'negative', neg)
160
- setattr(tensor_operator_registry, 'amin', amin)
161
- setattr(tensor_operator_registry, 'amax', amax)
162
- setattr(tensor_operator_registry, 'aminmax', aminmax)
163
- setattr(tensor_operator_registry, 'mean', mean)
164
- setattr(tensor_operator_registry, 'prod', prod)
165
- setattr(tensor_operator_registry, 'round', round)
166
- setattr(tensor_operator_registry, 'reshape', reshape)
167
- setattr(tensor_operator_registry, 'reverse', reverse)
168
- setattr(tensor_operator_registry, 'reverse_sequence', reverse_sequence)
169
- setattr(tensor_operator_registry, 'xlogy', xlogy)
170
- setattr(tensor_operator_registry, 'flatten', flatten)
171
- setattr(tensor_operator_registry, 'transpose', transpose)
172
- setattr(tensor_operator_registry, 'broadcast_to', broadcast_to)
173
- setattr(tensor_operator_registry, 'matmul', matmul)
174
- setattr(tensor_operator_registry, 'inner', inner)
175
- setattr(tensor_operator_registry, 'xdivy', xdivy)
176
- setattr(tensor_operator_registry, 'argmax', argmax)
177
- setattr(tensor_operator_registry, 'argmin', argmin)
178
- setattr(tensor_operator_registry, 'cumsum', P.CumSum)
179
- setattr(tensor_operator_registry, 'cummin', cummin)
180
- setattr(tensor_operator_registry, 'cummax', cummax)
181
- setattr(tensor_operator_registry, 'nelement', numel)
182
- setattr(tensor_operator_registry, 'numel', numel)
183
- setattr(tensor_operator_registry, 'positive', positive)
184
- setattr(tensor_operator_registry, 'permute', permute)
185
- setattr(tensor_operator_registry, 'remainder', remainder)
186
- setattr(tensor_operator_registry, 'index_fill', index_fill)
187
- setattr(tensor_operator_registry, 'index_select', index_select)
188
- setattr(tensor_operator_registry, 'flip', flip)
189
- setattr(tensor_operator_registry, 'fliplr', fliplr)
190
- setattr(tensor_operator_registry, 'flipud', flipud)
191
- setattr(tensor_operator_registry, 'float_power', float_power)
192
- setattr(tensor_operator_registry, 'fmax', fmax)
193
- setattr(tensor_operator_registry, 'fmin', fmin)
194
- setattr(tensor_operator_registry, 'fmod', fmod)
195
- setattr(tensor_operator_registry, 'is_floating_point', is_floating_point)
196
- setattr(tensor_operator_registry, 'bitwise_and', bitwise_and)
197
- setattr(tensor_operator_registry, 'bitwise_or', bitwise_or)
198
- setattr(tensor_operator_registry, 'bitwise_xor', bitwise_xor)
199
- setattr(tensor_operator_registry, 'bitwise_left_shift', bitwise_left_shift)
200
- setattr(tensor_operator_registry, 'bitwise_right_shift', bitwise_right_shift)
201
- setattr(tensor_operator_registry, 'ger', ger)
202
- setattr(tensor_operator_registry, 'reduce_max', P.ReduceMax)
203
- setattr(tensor_operator_registry, 'reduce_min', P.ReduceMin)
204
- setattr(tensor_operator_registry, 'random_categorical', random_categorical)
205
- setattr(tensor_operator_registry, 'mirror_pad', P.MirrorPad)
206
- setattr(tensor_operator_registry, 'minimum', minimum)
207
- setattr(tensor_operator_registry, 'matrix_power', matrix_power)
208
- setattr(tensor_operator_registry, 'det', det)
209
- setattr(tensor_operator_registry, 'dot', dot)
210
- setattr(tensor_operator_registry, 'outer', outer)
211
- setattr(tensor_operator_registry, 'log1p', log1p)
212
- setattr(tensor_operator_registry, 'logdet', logdet)
213
- setattr(tensor_operator_registry, 'log_matrix_determinant', log_matrix_determinant)
214
- setattr(tensor_operator_registry, 'matrix_determinant', matrix_determinant)
215
- setattr(tensor_operator_registry, 'ceil', ceil)
216
- setattr(tensor_operator_registry, 'fillv2', P.FillV2)
217
- setattr(tensor_operator_registry, 'tile', tile)
218
- setattr(tensor_operator_registry, 'logit', logit)
219
- setattr(tensor_operator_registry, 'sum', sum)
220
- setattr(tensor_operator_registry, 'split', split)
221
- setattr(tensor_operator_registry, 'tensor_split', tensor_split)
222
- setattr(tensor_operator_registry, 'vsplit', vsplit)
223
- setattr(tensor_operator_registry, 'hsplit', hsplit)
224
- setattr(tensor_operator_registry, 'dsplit', dsplit)
225
- setattr(tensor_operator_registry, 'zeros_like', zeros_like)
226
- setattr(tensor_operator_registry, 'scalar_to_tensor', scalar_to_tensor)
227
- setattr(tensor_operator_registry, 'stop_gradient', stop_gradient)
228
- setattr(tensor_operator_registry, 'masked_fill', masked_fill)
229
- setattr(tensor_operator_registry, 'masked_select', masked_select)
230
- setattr(tensor_operator_registry, 'nonzero', nonzero)
231
- setattr(tensor_operator_registry, 'i0', i0)
232
- setattr(tensor_operator_registry, 'isclose', isclose)
233
- setattr(tensor_operator_registry, 'isneginf', isneginf)
234
- setattr(tensor_operator_registry, 'isposinf', isposinf)
235
- setattr(tensor_operator_registry, 'isreal', isreal)
236
- setattr(tensor_operator_registry, 'inv', inv)
237
- setattr(tensor_operator_registry, 'digamma', digamma)
238
- setattr(tensor_operator_registry, 'lgamma', lgamma)
239
- setattr(tensor_operator_registry, 'logaddexp', logaddexp)
240
- setattr(tensor_operator_registry, 'logaddexp2', logaddexp2)
241
- setattr(tensor_operator_registry, 'logcumsumexp', logcumsumexp)
242
- setattr(tensor_operator_registry, 'logsumexp', logsumexp)
243
- setattr(tensor_operator_registry, 'inverse', inverse)
244
- setattr(tensor_operator_registry, 'invert', invert)
245
- setattr(tensor_operator_registry, 'hardshrink', hardshrink)
246
- setattr(tensor_operator_registry, 'heaviside', heaviside)
247
- setattr(tensor_operator_registry, 'hypot', hypot)
248
- setattr(tensor_operator_registry, 'searchsorted', P.SearchSorted)
249
- setattr(tensor_operator_registry, 'soft_shrink', soft_shrink)
250
- setattr(tensor_operator_registry, 'svd', linalg_ops.Svd)
251
- setattr(tensor_operator_registry, 'diag', diag)
252
- setattr(tensor_operator_registry, 'diagflat', diagflat)
253
- setattr(tensor_operator_registry, 'unique_consecutive', UniqueConsecutive)
254
- setattr(tensor_operator_registry, 'unique_with_pad', unique_with_pad)
255
- setattr(tensor_operator_registry, 'inplace_update', inplace_update)
256
- setattr(tensor_operator_registry, 'col2im', col2im)
257
- setattr(tensor_operator_registry, 'standard_laplace', P.StandardLaplace)
258
- setattr(tensor_operator_registry, 'erf', erf)
259
- setattr(tensor_operator_registry, 'erfc', erfc)
260
- setattr(tensor_operator_registry, 'standard_normal', P.StandardNormal)
261
- setattr(tensor_operator_registry, 'sigmoid', sigmoid)
262
- setattr(tensor_operator_registry, 'median', Median)
263
- setattr(tensor_operator_registry, 'tanh', tanh)
264
- setattr(tensor_operator_registry, 'exp', exp)
265
- setattr(tensor_operator_registry, 'addbmm', addbmm)
266
- setattr(tensor_operator_registry, 'addmm', addmm)
267
- setattr(tensor_operator_registry, 'addmv', addmv)
268
- setattr(tensor_operator_registry, 'adjoint', adjoint)
269
- setattr(tensor_operator_registry, 'asinh', asinh)
270
- setattr(tensor_operator_registry, 'arcsinh', arcsinh)
271
- setattr(tensor_operator_registry, 'atan', atan)
272
- setattr(tensor_operator_registry, 'atanh', atanh)
273
- setattr(tensor_operator_registry, 'arctanh', arctanh)
274
- setattr(tensor_operator_registry, 'bmm', bmm)
275
- setattr(tensor_operator_registry, 'conj', conj)
276
- setattr(tensor_operator_registry, 'cross', cross)
277
- setattr(tensor_operator_registry, 'erfinv', erfinv)
278
- setattr(tensor_operator_registry, 'less_equal', less_equal)
279
- setattr(tensor_operator_registry, 'lcm', lcm)
280
- setattr(tensor_operator_registry, 'ldexp', ldexp)
281
- setattr(tensor_operator_registry, 'clamp', clamp)
282
- setattr(tensor_operator_registry, 'fold', fold)
283
- setattr(tensor_operator_registry, 'unfold', unfold)
284
- setattr(tensor_operator_registry, 'diagonal', diagonal)
285
- setattr(tensor_operator_registry, 'diagonal_scatter', diagonal_scatter)
286
- setattr(tensor_operator_registry, 'index_add', index_add)
287
- setattr(tensor_operator_registry, 'greater', greater)
288
- setattr(tensor_operator_registry, 'greater_equal', greater_equal)
289
- setattr(tensor_operator_registry, 'igamma', igamma)
290
- setattr(tensor_operator_registry, 'igammac', igammac)
291
- setattr(tensor_operator_registry, 'lu_solve', lu_solve)
292
- setattr(tensor_operator_registry, 'nextafter', nextafter)
293
- setattr(tensor_operator_registry, 'qr', qr)
294
- setattr(tensor_operator_registry, 'ormqr', ormqr)
295
- setattr(tensor_operator_registry, 'masked_scatter', array_ops.MaskedScatter)
296
- setattr(tensor_operator_registry, 'index_put', array_ops.IndexPut)
297
- setattr(tensor_operator_registry, 'quantile', quantile)
298
- setattr(tensor_operator_registry, 'nanquantile', nanquantile)
299
- setattr(tensor_operator_registry, 'orgqr', orgqr)
118
+ tensor_operator_registry.register('tuple_to_tensor', _sequence_ops.TupleToTensor)
119
+ tensor_operator_registry.register('add', add)
120
+ tensor_operator_registry.register('softmax', softmax)
121
+ tensor_operator_registry.register('addr', addr)
122
+ tensor_operator_registry.register('addcdiv', addcdiv)
123
+ tensor_operator_registry.register('addcmul', addcmul)
124
+ tensor_operator_registry.register('all', all)
125
+ tensor_operator_registry.register('angle', angle)
126
+ tensor_operator_registry.register('any', any)
127
+ tensor_operator_registry.register('atan2', atan2)
128
+ tensor_operator_registry.register('abs', abs)
129
+ tensor_operator_registry.register('baddbmm', baddbmm)
130
+ tensor_operator_registry.register('geqrf', geqrf)
131
+ tensor_operator_registry.register('histc', histc)
132
+ tensor_operator_registry.register('real', real)
133
+ tensor_operator_registry.register('reciprocal', reciprocal)
134
+ tensor_operator_registry.register('rsqrt', rsqrt)
135
+ tensor_operator_registry.register('bincount', bincount)
136
+ tensor_operator_registry.register('slogdet', slogdet)
137
+ tensor_operator_registry.register('trace', trace)
138
+ tensor_operator_registry.register('tril', tril)
139
+ tensor_operator_registry.register('chunk', chunk)
140
+ tensor_operator_registry.register('count_nonzero', count_nonzero)
141
+ tensor_operator_registry.register('sqrt', sqrt)
142
+ tensor_operator_registry.register('square', square)
143
+ tensor_operator_registry.register('sub', sub)
144
+ tensor_operator_registry.register('triu', triu)
145
+ tensor_operator_registry.register('tan', tan)
146
+ tensor_operator_registry.register('t', t)
147
+ tensor_operator_registry.register('cauchy', P.Cauchy)
148
+ tensor_operator_registry.register('log_normal', P.LogNormalReverse)
149
+ tensor_operator_registry.register('acos', acos)
150
+ tensor_operator_registry.register('cos', cos)
151
+ tensor_operator_registry.register('acosh', acosh)
152
+ tensor_operator_registry.register('cosh', cosh)
153
+ tensor_operator_registry.register('cov', cov)
154
+ tensor_operator_registry.register('asin', asin)
155
+ tensor_operator_registry.register('sin', sin)
156
+ tensor_operator_registry.register('sinc', sinc)
157
+ tensor_operator_registry.register('pow', pow)
158
+ tensor_operator_registry.register('negative', neg)
159
+ tensor_operator_registry.register('amin', amin)
160
+ tensor_operator_registry.register('amax', amax)
161
+ tensor_operator_registry.register('aminmax', aminmax)
162
+ tensor_operator_registry.register('mean', mean)
163
+ tensor_operator_registry.register('prod', prod)
164
+ tensor_operator_registry.register('round', round)
165
+ tensor_operator_registry.register('reshape', reshape)
166
+ tensor_operator_registry.register('reverse', reverse)
167
+ tensor_operator_registry.register('reverse_sequence', reverse_sequence)
168
+ tensor_operator_registry.register('xlogy', xlogy)
169
+ tensor_operator_registry.register('flatten', flatten)
170
+ tensor_operator_registry.register('transpose', transpose)
171
+ tensor_operator_registry.register('broadcast_to', broadcast_to)
172
+ tensor_operator_registry.register('matmul', matmul)
173
+ tensor_operator_registry.register('inner', inner)
174
+ tensor_operator_registry.register('xdivy', xdivy)
175
+ tensor_operator_registry.register('argmax', argmax)
176
+ tensor_operator_registry.register('argmin', argmin)
177
+ tensor_operator_registry.register('cumsum', P.CumSum)
178
+ tensor_operator_registry.register('cummin', cummin)
179
+ tensor_operator_registry.register('cummax', cummax)
180
+ tensor_operator_registry.register('nelement', numel)
181
+ tensor_operator_registry.register('numel', numel)
182
+ tensor_operator_registry.register('positive', positive)
183
+ tensor_operator_registry.register('permute', permute)
184
+ tensor_operator_registry.register('remainder', remainder)
185
+ tensor_operator_registry.register('index_fill', index_fill)
186
+ tensor_operator_registry.register('index_select', index_select)
187
+ tensor_operator_registry.register('flip', flip)
188
+ tensor_operator_registry.register('fliplr', fliplr)
189
+ tensor_operator_registry.register('flipud', flipud)
190
+ tensor_operator_registry.register('float_power', float_power)
191
+ tensor_operator_registry.register('fmax', fmax)
192
+ tensor_operator_registry.register('fmin', fmin)
193
+ tensor_operator_registry.register('fmod', fmod)
194
+ tensor_operator_registry.register('is_floating_point', is_floating_point)
195
+ tensor_operator_registry.register('bitwise_and', bitwise_and)
196
+ tensor_operator_registry.register('bitwise_or', bitwise_or)
197
+ tensor_operator_registry.register('bitwise_xor', bitwise_xor)
198
+ tensor_operator_registry.register('bitwise_left_shift', bitwise_left_shift)
199
+ tensor_operator_registry.register('bitwise_right_shift', bitwise_right_shift)
200
+ tensor_operator_registry.register('ger', ger)
201
+ tensor_operator_registry.register('reduce_max', P.ReduceMax)
202
+ tensor_operator_registry.register('reduce_min', P.ReduceMin)
203
+ tensor_operator_registry.register('random_categorical', random_categorical)
204
+ tensor_operator_registry.register('mirror_pad', P.MirrorPad)
205
+ tensor_operator_registry.register('minimum', minimum)
206
+ tensor_operator_registry.register('matrix_power', matrix_power)
207
+ tensor_operator_registry.register('det', det)
208
+ tensor_operator_registry.register('dot', dot)
209
+ tensor_operator_registry.register('outer', outer)
210
+ tensor_operator_registry.register('log1p', log1p)
211
+ tensor_operator_registry.register('logdet', logdet)
212
+ tensor_operator_registry.register('log_matrix_determinant', log_matrix_determinant)
213
+ tensor_operator_registry.register('matrix_determinant', matrix_determinant)
214
+ tensor_operator_registry.register('ceil', ceil)
215
+ tensor_operator_registry.register('fillv2', P.FillV2)
216
+ tensor_operator_registry.register('tile', tile)
217
+ tensor_operator_registry.register('logit', logit)
218
+ tensor_operator_registry.register('sum', sum)
219
+ tensor_operator_registry.register('split', split)
220
+ tensor_operator_registry.register('tensor_split', tensor_split)
221
+ tensor_operator_registry.register('vsplit', vsplit)
222
+ tensor_operator_registry.register('hsplit', hsplit)
223
+ tensor_operator_registry.register('dsplit', dsplit)
224
+ tensor_operator_registry.register('zeros_like', zeros_like)
225
+ tensor_operator_registry.register('scalar_to_tensor', scalar_to_tensor)
226
+ tensor_operator_registry.register('stop_gradient', stop_gradient)
227
+ tensor_operator_registry.register('masked_fill', masked_fill)
228
+ tensor_operator_registry.register('masked_select', masked_select)
229
+ tensor_operator_registry.register('nonzero', nonzero)
230
+ tensor_operator_registry.register('i0', i0)
231
+ tensor_operator_registry.register('isclose', isclose)
232
+ tensor_operator_registry.register('isneginf', isneginf)
233
+ tensor_operator_registry.register('isposinf', isposinf)
234
+ tensor_operator_registry.register('isreal', isreal)
235
+ tensor_operator_registry.register('inv', inv)
236
+ tensor_operator_registry.register('digamma', digamma)
237
+ tensor_operator_registry.register('lgamma', lgamma)
238
+ tensor_operator_registry.register('logaddexp', logaddexp)
239
+ tensor_operator_registry.register('logaddexp2', logaddexp2)
240
+ tensor_operator_registry.register('logcumsumexp', logcumsumexp)
241
+ tensor_operator_registry.register('logsumexp', logsumexp)
242
+ tensor_operator_registry.register('inverse', inverse)
243
+ tensor_operator_registry.register('invert', invert)
244
+ tensor_operator_registry.register('hardshrink', hardshrink)
245
+ tensor_operator_registry.register('heaviside', heaviside)
246
+ tensor_operator_registry.register('hypot', hypot)
247
+ tensor_operator_registry.register('soft_shrink', soft_shrink)
248
+ tensor_operator_registry.register('svd', linalg_ops.Svd)
249
+ tensor_operator_registry.register('diag', diag)
250
+ tensor_operator_registry.register('diagflat', diagflat)
251
+ tensor_operator_registry.register('unique_consecutive', UniqueConsecutive)
252
+ tensor_operator_registry.register('unique_with_pad', unique_with_pad)
253
+ tensor_operator_registry.register('inplace_update', inplace_update)
254
+ tensor_operator_registry.register('col2im', col2im)
255
+ tensor_operator_registry.register('standard_laplace', P.StandardLaplace)
256
+ tensor_operator_registry.register('erf', erf)
257
+ tensor_operator_registry.register('erfc', erfc)
258
+ tensor_operator_registry.register('standard_normal', P.StandardNormal)
259
+ tensor_operator_registry.register('sigmoid', sigmoid)
260
+ tensor_operator_registry.register('median', Median)
261
+ tensor_operator_registry.register('tanh', tanh)
262
+ tensor_operator_registry.register('exp', exp)
263
+ tensor_operator_registry.register('addbmm', addbmm)
264
+ tensor_operator_registry.register('addmm', addmm)
265
+ tensor_operator_registry.register('addmv', addmv)
266
+ tensor_operator_registry.register('adjoint', adjoint)
267
+ tensor_operator_registry.register('asinh', asinh)
268
+ tensor_operator_registry.register('arcsinh', arcsinh)
269
+ tensor_operator_registry.register('atan', atan)
270
+ tensor_operator_registry.register('atanh', atanh)
271
+ tensor_operator_registry.register('arctanh', arctanh)
272
+ tensor_operator_registry.register('bmm', bmm)
273
+ tensor_operator_registry.register('conj', conj)
274
+ tensor_operator_registry.register('cross', cross)
275
+ tensor_operator_registry.register('erfinv', erfinv)
276
+ tensor_operator_registry.register('less_equal', less_equal)
277
+ tensor_operator_registry.register('lcm', lcm)
278
+ tensor_operator_registry.register('ldexp', ldexp)
279
+ tensor_operator_registry.register('clamp', clamp)
280
+ tensor_operator_registry.register('fold', fold)
281
+ tensor_operator_registry.register('unfold', unfold)
282
+ tensor_operator_registry.register('diagonal', diagonal)
283
+ tensor_operator_registry.register('diagonal_scatter', diagonal_scatter)
284
+ tensor_operator_registry.register('index_add', index_add)
285
+ tensor_operator_registry.register('greater', greater)
286
+ tensor_operator_registry.register('greater_equal', greater_equal)
287
+ tensor_operator_registry.register('igamma', igamma)
288
+ tensor_operator_registry.register('igammac', igammac)
289
+ tensor_operator_registry.register('lu_solve', lu_solve)
290
+ tensor_operator_registry.register('nextafter', nextafter)
291
+ tensor_operator_registry.register('qr', qr)
292
+ tensor_operator_registry.register('ormqr', ormqr)
293
+ tensor_operator_registry.register('masked_scatter', array_ops.MaskedScatter)
294
+ tensor_operator_registry.register('index_put', array_ops.IndexPut)
295
+ tensor_operator_registry.register('quantile', quantile)
296
+ tensor_operator_registry.register('nanquantile', nanquantile)
297
+ tensor_operator_registry.register('orgqr', orgqr)
300
298
  # ms cannot support Tensor(True) compare
301
- setattr(tensor_operator_registry, '__eq__', equal)
302
- setattr(tensor_operator_registry, '__ne__', not_equal)
303
- setattr(tensor_operator_registry, '__neg__', neg)
304
- setattr(tensor_operator_registry, '__lt__', tensor_lt)
305
- setattr(tensor_operator_registry, '__le__', tensor_le)
306
- setattr(tensor_operator_registry, '__gt__', tensor_gt)
307
- setattr(tensor_operator_registry, '__ge__', tensor_ge)
308
- setattr(tensor_operator_registry, '__logical_not__', logical_not)
309
- setattr(tensor_operator_registry, 'gt', gt)
310
- setattr(tensor_operator_registry, 'ge', ge)
311
- setattr(tensor_operator_registry, 'shape', shape)
312
- setattr(tensor_operator_registry, 'squeeze', squeeze)
313
- setattr(tensor_operator_registry, 'unsqueeze', unsqueeze)
314
- setattr(tensor_operator_registry, 'expand_dims', expand_dims)
315
- setattr(tensor_operator_registry, 'contiguous', auto_generate.contiguous)
299
+ tensor_operator_registry.register('__eq__', equal)
300
+ tensor_operator_registry.register('__ne__', not_equal)
301
+ tensor_operator_registry.register('__neg__', neg)
302
+ tensor_operator_registry.register('__lt__', tensor_lt)
303
+ tensor_operator_registry.register('__le__', tensor_le)
304
+ tensor_operator_registry.register('__gt__', tensor_gt)
305
+ tensor_operator_registry.register('__ge__', tensor_ge)
306
+ tensor_operator_registry.register('__logical_not__', logical_not)
307
+ tensor_operator_registry.register('gt', gt)
308
+ tensor_operator_registry.register('ge', ge)
309
+ tensor_operator_registry.register('shape', shape)
310
+ tensor_operator_registry.register('squeeze', squeeze)
311
+ tensor_operator_registry.register('unsqueeze', unsqueeze)
312
+ tensor_operator_registry.register('expand_dims', expand_dims)
313
+ tensor_operator_registry.register('contiguous', auto_generate.contiguous)
316
314
  # support GE backend for no compare operators
317
- setattr(tensor_operator_registry, 'cast', cast)
318
- setattr(tensor_operator_registry, 'shape_mul', shape_mul)
319
- setattr(tensor_operator_registry, 'concatenate', concat)
320
- setattr(tensor_operator_registry, 'fill', fill)
321
- setattr(tensor_operator_registry, 'fills', fills)
322
- setattr(tensor_operator_registry, 'fill_diagonal', P.FillDiagonal)
323
- setattr(tensor_operator_registry, 'eye', eye)
324
- setattr(tensor_operator_registry, 'eigvals', eigvals)
325
- setattr(tensor_operator_registry, 'reduce_sum', reduce_sum)
326
- setattr(tensor_operator_registry, 'reducesum', P.ReduceSum)
327
- setattr(tensor_operator_registry, 'tensor_slice', tensor_slice)
328
- setattr(tensor_operator_registry, 'select', select)
329
- setattr(tensor_operator_registry, 'uniform', uniform_ext)
330
- setattr(tensor_operator_registry, 'gather', gather)
331
- setattr(tensor_operator_registry, 'gather_d', gather_d)
332
- setattr(tensor_operator_registry, 'gather_elements', gather_elements)
333
- setattr(tensor_operator_registry, 'gather_nd', gather_nd)
334
- setattr(tensor_operator_registry, 'stack', stack)
335
- setattr(tensor_operator_registry, 'unstack', unstack)
336
- setattr(tensor_operator_registry, 'unbind', unstack)
337
- setattr(tensor_operator_registry, 'log', log)
338
- setattr(tensor_operator_registry, 'log10', log10)
339
- setattr(tensor_operator_registry, 'log2', log2)
340
- setattr(tensor_operator_registry, 'lerp', lerp)
341
- setattr(tensor_operator_registry, 'floor', floor)
342
- setattr(tensor_operator_registry, 'floor_divide', floor_divide)
315
+ tensor_operator_registry.register('cast', cast)
316
+ tensor_operator_registry.register('shape_mul', shape_mul)
317
+ tensor_operator_registry.register('concatenate', concat)
318
+ tensor_operator_registry.register('fill', fill)
319
+ tensor_operator_registry.register('fills', fills)
320
+ tensor_operator_registry.register('fill_diagonal', P.FillDiagonal)
321
+ tensor_operator_registry.register('eye', eye)
322
+ tensor_operator_registry.register('eigvals', eigvals)
323
+ tensor_operator_registry.register('reduce_sum', reduce_sum)
324
+ tensor_operator_registry.register('reducesum', P.ReduceSum)
325
+ tensor_operator_registry.register('tensor_slice', tensor_slice)
326
+ tensor_operator_registry.register('select', select)
327
+ tensor_operator_registry.register('gather', gather)
328
+ tensor_operator_registry.register('gather_d', gather_d)
329
+ tensor_operator_registry.register('gather_elements', gather_elements)
330
+ tensor_operator_registry.register('gather_nd', gather_nd)
331
+ tensor_operator_registry.register('stack', stack)
332
+ tensor_operator_registry.register('unstack', unstack)
333
+ tensor_operator_registry.register('unbind', unstack)
334
+ tensor_operator_registry.register('log', log)
335
+ tensor_operator_registry.register('log10', log10)
336
+ tensor_operator_registry.register('log2', log2)
337
+ tensor_operator_registry.register('lerp', lerp)
338
+ tensor_operator_registry.register('floor', floor)
339
+ tensor_operator_registry.register('floor_divide', floor_divide)
343
340
  # support sparse tensor operators
344
- setattr(tensor_operator_registry, 'csr_add', csr_add)
345
- setattr(tensor_operator_registry, 'csr_mul', csr_mul)
346
- setattr(tensor_operator_registry, 'csr2coo', csr2coo)
347
- setattr(tensor_operator_registry, 'coo2csr', coo2csr)
348
- setattr(tensor_operator_registry, 'csr_div', csr_div)
349
- setattr(tensor_operator_registry, 'csr_mv', csr_mv)
350
- setattr(tensor_operator_registry, 'csr_mm_akg', _csr_ops.CSRMM)
351
- setattr(tensor_operator_registry, 'csr_mm', csr_mm)
352
- setattr(tensor_operator_registry, 'csr_reduce_sum', csr_reduce_sum)
353
- setattr(tensor_operator_registry, 'dense_to_sparse_csr', dense_to_sparse_csr)
354
- setattr(tensor_operator_registry, 'dense_to_sparse_coo', dense_to_sparse_coo)
355
- setattr(tensor_operator_registry, 'csr_to_dense', csr_to_dense)
356
- setattr(tensor_operator_registry, 'narrow', narrow)
357
- setattr(tensor_operator_registry, 'sort', sort)
358
- setattr(tensor_operator_registry, 'argsort', argsort)
359
- setattr(tensor_operator_registry, 'msort', msort)
360
- setattr(tensor_operator_registry, 'mm', mm)
361
- setattr(tensor_operator_registry, 'nan_to_num', nan_to_num)
362
- setattr(tensor_operator_registry, 'nansum', nansum)
363
- setattr(tensor_operator_registry, 'nanmean', nanmean)
364
- setattr(tensor_operator_registry, 'nanmedian', nanmedian)
365
- setattr(tensor_operator_registry, 'csr_to_coo', csr_to_coo)
366
- setattr(tensor_operator_registry, 'zeros', zeros)
367
- setattr(tensor_operator_registry, 'ones', ones)
368
- setattr(tensor_operator_registry, 'unsorted_segment_min', unsorted_segment_min)
369
- setattr(tensor_operator_registry, 'unsorted_segment_max', unsorted_segment_max)
370
- setattr(tensor_operator_registry, 'unsorted_segment_prod', unsorted_segment_prod)
371
- setattr(tensor_operator_registry, 'scatter', scatter)
372
- setattr(tensor_operator_registry, 'tensor_scatter_update', tensor_scatter_update)
373
- setattr(tensor_operator_registry, 'tensor_scatter_mul', tensor_scatter_mul)
374
- setattr(tensor_operator_registry, 'tensor_scatter_div', tensor_scatter_div)
375
- setattr(tensor_operator_registry, 'tensor_scatter_min', tensor_scatter_min)
376
- setattr(tensor_operator_registry, 'tensor_scatter_max', tensor_scatter_max)
377
- setattr(tensor_operator_registry, 'tensor_scatter_sub', tensor_scatter_sub)
378
- setattr(tensor_operator_registry, 'tensor_scatter_add', tensor_scatter_add)
379
- setattr(tensor_operator_registry, 'slice_scatter', slice_scatter)
380
- setattr(tensor_operator_registry, 'select_scatter', select_scatter)
381
- setattr(tensor_operator_registry, 'bernoulli', bernoulli)
382
- setattr(tensor_operator_registry, 'poisson', P.Poisson)
383
- setattr(tensor_operator_registry, 'randperm', P.Randperm)
384
- setattr(tensor_operator_registry, 'multinomial', multinomial)
385
- setattr(tensor_operator_registry, 'norm', norm)
386
- setattr(tensor_operator_registry, 'renorm', renorm)
387
- setattr(tensor_operator_registry, 'adaptive_max_pool2d', AdaptiveMaxPool2D)
388
- setattr(tensor_operator_registry, 'coalesce', coalesce)
389
- setattr(tensor_operator_registry, 'argmax_with_value', max)
390
- setattr(tensor_operator_registry, 'argmin_with_value', min)
391
- setattr(tensor_operator_registry, 'argwhere', argwhere)
392
- setattr(tensor_operator_registry, 'coo_add', coo_add)
393
- setattr(tensor_operator_registry, 'topk', topk)
394
- setattr(tensor_operator_registry, 'isfinite', isfinite)
395
- setattr(tensor_operator_registry, 'to', cast)
396
- setattr(tensor_operator_registry, 'bool', cast)
397
- setattr(tensor_operator_registry, 'float', cast)
398
- setattr(tensor_operator_registry, 'half', cast)
399
- setattr(tensor_operator_registry, 'int', cast)
400
- setattr(tensor_operator_registry, 'long', cast)
401
- setattr(tensor_operator_registry, 'cholesky', cholesky)
402
- setattr(tensor_operator_registry, 'cholesky_inverse', cholesky_inverse)
403
- setattr(tensor_operator_registry, 'cholesky_solve', cholesky_solve)
404
- setattr(tensor_operator_registry, 'expand', broadcast_to)
405
- setattr(tensor_operator_registry, 'tensortotuple', TensorToTuple)
406
- setattr(tensor_operator_registry, 'cumprod', cumprod)
407
- setattr(tensor_operator_registry, 'diff', diff)
408
- setattr(tensor_operator_registry, 'div', div)
409
- setattr(tensor_operator_registry, 'equal', equal)
410
- setattr(tensor_operator_registry, 'expm1', expm1)
411
- setattr(tensor_operator_registry, 'frac', frac)
412
- setattr(tensor_operator_registry, 'isinf', isinf)
413
- setattr(tensor_operator_registry, 'isnan', isnan)
414
- setattr(tensor_operator_registry, 'is_complex', is_complex)
415
- setattr(tensor_operator_registry, 'le', le)
416
- setattr(tensor_operator_registry, 'less', less)
417
- setattr(tensor_operator_registry, 'logical_and', logical_and)
418
- setattr(tensor_operator_registry, 'logical_not', logical_not)
419
- setattr(tensor_operator_registry, 'logical_or', logical_or)
420
- setattr(tensor_operator_registry, 'logical_xor', logical_xor)
421
- setattr(tensor_operator_registry, 'lstsq', lstsq)
422
- setattr(tensor_operator_registry, 'mvlgamma', mvlgamma)
423
- setattr(tensor_operator_registry, 'maximum', maximum)
424
- setattr(tensor_operator_registry, 'max', max)
425
- setattr(tensor_operator_registry, 'min', min)
426
- setattr(tensor_operator_registry, 'mul', mul)
427
- setattr(tensor_operator_registry, 'multiply', multiply)
428
- setattr(tensor_operator_registry, 'moveaxis', moveaxis)
429
- setattr(tensor_operator_registry, 'movedim', movedim)
430
- setattr(tensor_operator_registry, 'neg', neg)
431
- setattr(tensor_operator_registry, 'ne', ne)
432
- setattr(tensor_operator_registry, 'not_equal', not_equal)
433
- setattr(tensor_operator_registry, 'sgn', sgn)
434
- setattr(tensor_operator_registry, 'sign', sign)
435
- setattr(tensor_operator_registry, 'signbit', signbit)
436
- setattr(tensor_operator_registry, 'sinh', sinh)
437
- setattr(tensor_operator_registry, 'trunc', trunc)
438
- setattr(tensor_operator_registry, 'where', where)
439
- setattr(tensor_operator_registry, 'imag', imag)
440
- setattr(tensor_operator_registry, 'repeat_interleave', repeat_interleave)
441
- setattr(tensor_operator_registry, 'rad2deg', rad2deg)
442
- setattr(tensor_operator_registry, 'deg2rad', deg2rad)
443
- setattr(tensor_operator_registry, 'copysign', copysign)
444
- setattr(tensor_operator_registry, 'roll', Roll)
445
- setattr(tensor_operator_registry, 'rot90', rot90)
446
- setattr(tensor_operator_registry, 'swapaxes', swapaxes)
447
- setattr(tensor_operator_registry, 'swapdims', swapdims)
448
- setattr(tensor_operator_registry, 'repeat_elements', repeat_elements)
449
- setattr(tensor_operator_registry, 'top_k', top_k)
341
+ tensor_operator_registry.register('csr_add', csr_add)
342
+ tensor_operator_registry.register('csr_mul', csr_mul)
343
+ tensor_operator_registry.register('csr2coo', csr2coo)
344
+ tensor_operator_registry.register('coo2csr', coo2csr)
345
+ tensor_operator_registry.register('csr_div', csr_div)
346
+ tensor_operator_registry.register('csr_mv', csr_mv)
347
+ tensor_operator_registry.register('csr_mm_akg', _csr_ops.CSRMM)
348
+ tensor_operator_registry.register('csr_mm', csr_mm)
349
+ tensor_operator_registry.register('csr_reduce_sum', csr_reduce_sum)
350
+ tensor_operator_registry.register('dense_to_sparse_csr', dense_to_sparse_csr)
351
+ tensor_operator_registry.register('dense_to_sparse_coo', dense_to_sparse_coo)
352
+ tensor_operator_registry.register('csr_to_dense', csr_to_dense)
353
+ tensor_operator_registry.register('narrow', narrow)
354
+ tensor_operator_registry.register('sort', sort)
355
+ tensor_operator_registry.register('argsort', argsort)
356
+ tensor_operator_registry.register('msort', msort)
357
+ tensor_operator_registry.register('mm', mm)
358
+ tensor_operator_registry.register('nan_to_num', nan_to_num)
359
+ tensor_operator_registry.register('nansum', nansum)
360
+ tensor_operator_registry.register('nanmean', nanmean)
361
+ tensor_operator_registry.register('nanmedian', nanmedian)
362
+ tensor_operator_registry.register('csr_to_coo', csr_to_coo)
363
+ tensor_operator_registry.register('zeros', zeros)
364
+ tensor_operator_registry.register('ones', ones)
365
+ tensor_operator_registry.register('unsorted_segment_min', unsorted_segment_min)
366
+ tensor_operator_registry.register('unsorted_segment_max', unsorted_segment_max)
367
+ tensor_operator_registry.register('unsorted_segment_prod', unsorted_segment_prod)
368
+ tensor_operator_registry.register('scatter', scatter)
369
+ tensor_operator_registry.register('tensor_scatter_update', tensor_scatter_update)
370
+ tensor_operator_registry.register('tensor_scatter_mul', tensor_scatter_mul)
371
+ tensor_operator_registry.register('tensor_scatter_div', tensor_scatter_div)
372
+ tensor_operator_registry.register('tensor_scatter_min', tensor_scatter_min)
373
+ tensor_operator_registry.register('tensor_scatter_max', tensor_scatter_max)
374
+ tensor_operator_registry.register('tensor_scatter_sub', tensor_scatter_sub)
375
+ tensor_operator_registry.register('tensor_scatter_add', tensor_scatter_add)
376
+ tensor_operator_registry.register('slice_scatter', slice_scatter)
377
+ tensor_operator_registry.register('select_scatter', select_scatter)
378
+ tensor_operator_registry.register('bernoulli', bernoulli)
379
+ tensor_operator_registry.register('poisson', P.Poisson)
380
+ tensor_operator_registry.register('randperm', P.Randperm)
381
+ tensor_operator_registry.register('multinomial', multinomial)
382
+ tensor_operator_registry.register('norm', norm)
383
+ tensor_operator_registry.register('renorm', renorm)
384
+ tensor_operator_registry.register('adaptive_max_pool2d', AdaptiveMaxPool2D)
385
+ tensor_operator_registry.register('coalesce', coalesce)
386
+ tensor_operator_registry.register('argmax_with_value', max)
387
+ tensor_operator_registry.register('argmin_with_value', min)
388
+ tensor_operator_registry.register('argwhere', argwhere)
389
+ tensor_operator_registry.register('coo_add', coo_add)
390
+ tensor_operator_registry.register('topk', topk)
391
+ tensor_operator_registry.register('isfinite', isfinite)
392
+ tensor_operator_registry.register('to', cast)
393
+ tensor_operator_registry.register('bool', cast)
394
+ tensor_operator_registry.register('float', cast)
395
+ tensor_operator_registry.register('half', cast)
396
+ tensor_operator_registry.register('int', cast)
397
+ tensor_operator_registry.register('long', cast)
398
+ tensor_operator_registry.register('cholesky', cholesky)
399
+ tensor_operator_registry.register('cholesky_inverse', cholesky_inverse)
400
+ tensor_operator_registry.register('cholesky_solve', cholesky_solve)
401
+ tensor_operator_registry.register('expand', broadcast_to)
402
+ tensor_operator_registry.register('tensortotuple', TensorToTuple)
403
+ tensor_operator_registry.register('cumprod', cumprod)
404
+ tensor_operator_registry.register('diff', diff)
405
+ tensor_operator_registry.register('div', div)
406
+ tensor_operator_registry.register('equal', equal)
407
+ tensor_operator_registry.register('expm1', expm1)
408
+ tensor_operator_registry.register('frac', frac)
409
+ tensor_operator_registry.register('isinf', isinf)
410
+ tensor_operator_registry.register('isnan', isnan)
411
+ tensor_operator_registry.register('is_complex', is_complex)
412
+ tensor_operator_registry.register('le', le)
413
+ tensor_operator_registry.register('less', less)
414
+ tensor_operator_registry.register('logical_and', logical_and)
415
+ tensor_operator_registry.register('logical_not', logical_not)
416
+ tensor_operator_registry.register('logical_or', logical_or)
417
+ tensor_operator_registry.register('logical_xor', logical_xor)
418
+ tensor_operator_registry.register('lstsq', lstsq)
419
+ tensor_operator_registry.register('mvlgamma', mvlgamma)
420
+ tensor_operator_registry.register('maximum', maximum)
421
+ tensor_operator_registry.register('max', max)
422
+ tensor_operator_registry.register('min', min)
423
+ tensor_operator_registry.register('mul', mul)
424
+ tensor_operator_registry.register('multiply', multiply)
425
+ tensor_operator_registry.register('moveaxis', moveaxis)
426
+ tensor_operator_registry.register('movedim', movedim)
427
+ tensor_operator_registry.register('neg', neg)
428
+ tensor_operator_registry.register('ne', ne)
429
+ tensor_operator_registry.register('not_equal', not_equal)
430
+ tensor_operator_registry.register('sgn', sgn)
431
+ tensor_operator_registry.register('sign', sign)
432
+ tensor_operator_registry.register('signbit', signbit)
433
+ tensor_operator_registry.register('sinh', sinh)
434
+ tensor_operator_registry.register('trunc', trunc)
435
+ tensor_operator_registry.register('where', where)
436
+ tensor_operator_registry.register('imag', imag)
437
+ tensor_operator_registry.register('repeat_interleave', repeat_interleave)
438
+ tensor_operator_registry.register('rad2deg', rad2deg)
439
+ tensor_operator_registry.register('deg2rad', deg2rad)
440
+ tensor_operator_registry.register('copysign', copysign)
441
+ tensor_operator_registry.register('roll', Roll)
442
+ tensor_operator_registry.register('rot90', rot90)
443
+ tensor_operator_registry.register('swapaxes', swapaxes)
444
+ tensor_operator_registry.register('swapdims', swapdims)
445
+ tensor_operator_registry.register('repeat_elements', repeat_elements)
446
+ tensor_operator_registry.register('top_k', top_k)
450
447
 
451
448
  __all__ = [name for name in dir() if name[0] != "_"]
452
449
  __all__.remove('Primitive')
453
- __all__.remove('argmax_ext')
454
- __all__.remove('uniform_ext')