mindspore 2.3.0rc1__cp37-none-any.whl → 2.3.0rc2__cp37-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.
- mindspore/.commit_id +1 -1
- mindspore/__init__.py +1 -1
- mindspore/_akg/akg/utils/tbe_codegen_utils.py +13 -3
- mindspore/_c_dataengine.cpython-37m-aarch64-linux-gnu.so +0 -0
- mindspore/_c_expression.cpython-37m-aarch64-linux-gnu.so +0 -0
- mindspore/_checkparam.py +20 -0
- mindspore/_extends/parse/parser.py +1 -1
- mindspore/_extends/parse/standard_method.py +6 -5
- mindspore/_mindspore_offline_debug.cpython-37m-aarch64-linux-gnu.so +0 -0
- mindspore/amp.py +5 -5
- mindspore/bin/cache_admin +0 -0
- mindspore/bin/cache_server +0 -0
- mindspore/boost/boost_cell_wrapper.py +1 -1
- mindspore/boost/group_loss_scale_manager.py +1 -1
- mindspore/common/__init__.py +4 -2
- mindspore/common/_register_for_recompute.py +48 -0
- mindspore/common/_stub_tensor.py +1 -0
- mindspore/common/api.py +56 -4
- mindspore/common/dtype.py +5 -3
- mindspore/common/dump.py +2 -2
- mindspore/common/hook_handle.py +51 -4
- mindspore/common/initializer.py +1 -1
- mindspore/common/jit_config.py +17 -6
- mindspore/common/parameter.py +7 -2
- mindspore/common/recompute.py +247 -0
- mindspore/common/sparse_tensor.py +2 -2
- mindspore/common/symbol.py +1 -1
- mindspore/common/tensor.py +74 -36
- mindspore/communication/__init__.py +3 -3
- mindspore/communication/management.py +30 -30
- mindspore/context.py +28 -15
- mindspore/dataset/__init__.py +5 -5
- mindspore/dataset/audio/__init__.py +2 -2
- mindspore/dataset/audio/transforms.py +51 -51
- mindspore/dataset/callback/ds_callback.py +2 -2
- mindspore/dataset/engine/cache_client.py +1 -1
- mindspore/dataset/engine/datasets.py +3 -3
- mindspore/dataset/engine/datasets_audio.py +14 -14
- mindspore/dataset/engine/datasets_standard_format.py +3 -3
- mindspore/dataset/engine/datasets_text.py +38 -38
- mindspore/dataset/engine/datasets_user_defined.py +3 -3
- mindspore/dataset/engine/datasets_vision.py +68 -68
- mindspore/dataset/text/__init__.py +3 -3
- mindspore/dataset/text/transforms.py +26 -26
- mindspore/dataset/transforms/__init__.py +1 -1
- mindspore/dataset/vision/__init__.py +3 -3
- mindspore/dataset/vision/transforms.py +92 -92
- mindspore/dataset/vision/utils.py +1 -1
- mindspore/experimental/optim/adadelta.py +2 -2
- mindspore/experimental/optim/adagrad.py +2 -2
- mindspore/experimental/optim/adam.py +2 -2
- mindspore/experimental/optim/adamax.py +2 -2
- mindspore/experimental/optim/adamw.py +2 -2
- mindspore/experimental/optim/asgd.py +2 -2
- mindspore/experimental/optim/lr_scheduler.py +24 -20
- mindspore/experimental/optim/nadam.py +2 -2
- mindspore/experimental/optim/optimizer.py +1 -1
- mindspore/experimental/optim/radam.py +2 -2
- mindspore/experimental/optim/rmsprop.py +2 -2
- mindspore/experimental/optim/rprop.py +2 -2
- mindspore/experimental/optim/sgd.py +2 -2
- mindspore/hal/stream.py +2 -0
- mindspore/include/mindapi/base/types.h +5 -0
- mindspore/lib/libdnnl.so.2 +0 -0
- mindspore/lib/libmindspore.so +0 -0
- mindspore/lib/libmindspore_backend.so +0 -0
- mindspore/lib/libmindspore_common.so +0 -0
- mindspore/lib/libmindspore_core.so +0 -0
- mindspore/lib/libmindspore_gpr.so.15 +0 -0
- mindspore/lib/libmindspore_grpc++.so.1 +0 -0
- mindspore/lib/libmindspore_grpc.so.15 +0 -0
- mindspore/lib/libmindspore_shared_lib.so +0 -0
- mindspore/lib/libopencv_core.so.4.5 +0 -0
- mindspore/lib/plugin/ascend/custom_aicpu_ops/op_impl/cpu/aicpu_kernel/impl/libcust_cpu_kernels.so +0 -0
- mindspore/lib/plugin/ascend/custom_aicpu_ops/op_impl/cpu/config/cust_aicpu_kernel.json +6 -6
- mindspore/lib/plugin/ascend/custom_aicpu_ops/op_proto/libcust_op_proto.so +0 -0
- mindspore/lib/plugin/ascend/libdvpp_utils.so +0 -0
- mindspore/lib/plugin/ascend/liblowlatency_collective.so +0 -0
- mindspore/lib/plugin/ascend/libmindspore_cpu_kernels.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/DeviceBin +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/PkgInspect +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/bin/op_man +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/device/ascend910b/bin/ascend910b.bin +101787 -98559
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/host/libasdops_cann_host.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/host/libasdops_host.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/base/op_register.h +2 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/params/mix.h +8 -1
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/params/norm.h +5 -3
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/params/reduce.h +2 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/utils/rt/backend/backend.h +3 -3
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/utils/rt/backend/rtbackend.h +3 -3
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/utils/rt/base/types.h +0 -1
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/utils/rt/module/module.h +3 -3
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/include/asdops/utils/svector/svector.h +3 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/lib/libasdops.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/asdops/lib/libasdops_static.a +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/add/tiling/add_tiling.h +9 -9
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/apply_rotary_pos_emb_impl.h +2 -6
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb.h +2 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_base.h +460 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_bf16.h +217 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_fp16.h +116 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_tiling.h +16 -24
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/apply_rotary_pos_emb/kernel/apply_rotary_pos_emb_value.h +27 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/asdop/asd_op_impl.h +0 -4
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{attention/FlashAttentionScore_impl.h → flash_attention_score/flash_attention_score_impl.h} +2 -1
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{attention/bs_attention_tiling.h → flash_attention_score/flash_attention_score_tiling.h} +15 -19
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/gelu/tiling/gelu_tiling.h +7 -9
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/lccl/lccl_wrapper.h +58 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul/matmul_impl.h +19 -8
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{matmul → matmul_common}/pp_matmul_common_tiling.h +18 -8
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{matmul → matmul_common}/pp_matmul_info.h +7 -4
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{matmul → matmul_common}/tiling_data.h +44 -6
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_common/tiling_utils.h +65 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_stridedslice/matmul_stridedslice_fusion_impl.h +10 -6
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/op_param.h +4 -1
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/paged_attention/kernel/paged_attention_mix_hwsync.h +41 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{attention/PagedAttention_impl.h → paged_attention/paged_attention_impl.h} +1 -1
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/paged_attention/paged_attention_tiling.h +63 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/add_param.h +2 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{attention_param.h → param/attention_param.h} +11 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/matmul_ext_param.h +37 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/param/sub_param.h +45 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/reshape_and_cache/reshape_and_cache_tiling.h +1 -2
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/kernel/rms_norm.h +23 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/kernel/rms_norm_base.h +175 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/kernel/rms_norm_normal.h +276 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/kernel/rms_norm_split_d.h +280 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/kernel/tiling_data.h +35 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/rms_norm/rms_norm_impl.h +45 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/sub/kernel/sub_kernel.h +20 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/sub/sub_impl.h +47 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/sub/sub_tiling.h +25 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/tune_repo/matmul_table.h +323 -23
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/types.h +15 -4
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/utils/log/log_tiling.h +8 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libAdd_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libSub_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libadd_layernorm_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libadd_rms_norm_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libapply_rotary_pos_emb_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libcast_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libgelu_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libmatmul_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libmatmul_stridedslice_fusion_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libms_kernels_internal.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libnot_equal_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/libreshape_and_cache_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/lib/librms_norm_impl.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bnsd_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bnsd_tri_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bsh_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_bf16_bsh_tri_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bnsd_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bnsd_tri_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bsh_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/flash_attention_score_fp16_bsh_tri_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_bf16_bnsd_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_bf16_bsh_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_fp16_bnsd_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/paged_attention_fp16_bsh_full_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lcal.h +22 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lcal_comm.h +70 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lcal_types.h +103 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lccl.h +47 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lccl_wrapper.h +58 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/include/lcoc.h +154 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/lib/liblcal.so +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/lccl/lib/liblccl_wrapper.so +0 -0
- mindspore/lib/plugin/libmindspore_ascend.so.2 +0 -0
- mindspore/log.py +2 -2
- mindspore/mint/__init__.py +457 -0
- mindspore/mint/nn/__init__.py +430 -0
- mindspore/mint/nn/functional.py +424 -0
- mindspore/mint/optim/__init__.py +24 -0
- mindspore/mint/optim/adamw.py +186 -0
- mindspore/multiprocessing/__init__.py +4 -0
- mindspore/nn/__init__.py +3 -0
- mindspore/nn/cell.py +51 -47
- mindspore/nn/extend/__init__.py +29 -0
- mindspore/nn/extend/basic.py +140 -0
- mindspore/nn/extend/embedding.py +143 -0
- mindspore/nn/extend/layer/__init__.py +27 -0
- mindspore/nn/extend/layer/normalization.py +107 -0
- mindspore/nn/extend/pooling.py +117 -0
- mindspore/nn/generator.py +297 -0
- mindspore/nn/layer/basic.py +109 -1
- mindspore/nn/layer/container.py +2 -2
- mindspore/nn/layer/conv.py +6 -6
- mindspore/nn/layer/embedding.py +1 -1
- mindspore/nn/layer/normalization.py +21 -43
- mindspore/nn/layer/padding.py +4 -0
- mindspore/nn/optim/ada_grad.py +2 -2
- mindspore/nn/optim/adadelta.py +1 -1
- mindspore/nn/optim/adafactor.py +1 -1
- mindspore/nn/optim/adam.py +7 -7
- mindspore/nn/optim/adamax.py +2 -2
- mindspore/nn/optim/adasum.py +2 -2
- mindspore/nn/optim/asgd.py +2 -2
- mindspore/nn/optim/ftrl.py +1 -1
- mindspore/nn/optim/lamb.py +3 -3
- mindspore/nn/optim/lars.py +1 -1
- mindspore/nn/optim/lazyadam.py +2 -2
- mindspore/nn/optim/momentum.py +2 -2
- mindspore/nn/optim/optimizer.py +2 -2
- mindspore/nn/optim/proximal_ada_grad.py +2 -2
- mindspore/nn/optim/rmsprop.py +2 -2
- mindspore/nn/optim/rprop.py +2 -2
- mindspore/nn/optim/sgd.py +2 -2
- mindspore/nn/optim/thor.py +2 -2
- mindspore/nn/wrap/cell_wrapper.py +9 -9
- mindspore/nn/wrap/grad_reducer.py +5 -5
- mindspore/ops/_grad_experimental/grad_comm_ops.py +4 -2
- mindspore/ops/_vmap/vmap_grad_nn_ops.py +41 -2
- mindspore/ops/_vmap/vmap_math_ops.py +27 -8
- mindspore/ops/_vmap/vmap_nn_ops.py +66 -8
- mindspore/ops/auto_generate/cpp_create_prim_instance_helper.py +73 -1
- mindspore/ops/auto_generate/gen_arg_dtype_cast.py +12 -3
- mindspore/ops/auto_generate/gen_arg_handler.py +24 -0
- mindspore/ops/auto_generate/gen_extend_func.py +274 -0
- mindspore/ops/auto_generate/gen_ops_def.py +889 -22
- mindspore/ops/auto_generate/gen_ops_prim.py +3541 -253
- mindspore/ops/auto_generate/pyboost_inner_prim.py +282 -0
- mindspore/ops/composite/multitype_ops/_compile_utils.py +2 -1
- mindspore/ops/composite/multitype_ops/_constexpr_utils.py +9 -0
- mindspore/ops/extend/__init__.py +9 -1
- mindspore/ops/extend/array_func.py +134 -27
- mindspore/ops/extend/math_func.py +3 -3
- mindspore/ops/extend/nn_func.py +363 -2
- mindspore/ops/function/__init__.py +19 -2
- mindspore/ops/function/array_func.py +463 -439
- mindspore/ops/function/clip_func.py +7 -18
- mindspore/ops/function/grad/grad_func.py +5 -5
- mindspore/ops/function/linalg_func.py +4 -4
- mindspore/ops/function/math_func.py +260 -243
- mindspore/ops/function/nn_func.py +825 -62
- mindspore/ops/function/random_func.py +73 -4
- mindspore/ops/function/sparse_unary_func.py +1 -1
- mindspore/ops/function/vmap_func.py +1 -1
- mindspore/ops/functional.py +2 -2
- mindspore/ops/op_info_register.py +1 -31
- mindspore/ops/operations/__init__.py +2 -3
- mindspore/ops/operations/_grad_ops.py +2 -107
- mindspore/ops/operations/_inner_ops.py +5 -5
- mindspore/ops/operations/_sequence_ops.py +2 -2
- mindspore/ops/operations/array_ops.py +11 -233
- mindspore/ops/operations/comm_ops.py +32 -32
- mindspore/ops/operations/custom_ops.py +7 -89
- mindspore/ops/operations/manually_defined/ops_def.py +329 -4
- mindspore/ops/operations/math_ops.py +13 -163
- mindspore/ops/operations/nn_ops.py +9 -316
- mindspore/ops/operations/random_ops.py +1 -1
- mindspore/ops/operations/sparse_ops.py +3 -3
- mindspore/ops/primitive.py +2 -2
- mindspore/ops_generate/arg_dtype_cast.py +12 -3
- mindspore/ops_generate/arg_handler.py +24 -0
- mindspore/ops_generate/gen_ops_inner_prim.py +2 -0
- mindspore/ops_generate/gen_pyboost_func.py +13 -6
- mindspore/ops_generate/pyboost_utils.py +2 -17
- mindspore/parallel/__init__.py +3 -2
- mindspore/parallel/_auto_parallel_context.py +106 -1
- mindspore/parallel/_parallel_serialization.py +34 -2
- mindspore/parallel/_utils.py +16 -0
- mindspore/parallel/algo_parameter_config.py +4 -4
- mindspore/parallel/checkpoint_transform.py +249 -77
- mindspore/parallel/cluster/process_entity/_api.py +1 -1
- mindspore/parallel/parameter_broadcast.py +1 -1
- mindspore/parallel/shard.py +1 -1
- mindspore/profiler/parser/ascend_analysis/fwk_cann_parser.py +1 -0
- mindspore/profiler/parser/ascend_analysis/profiler_info_parser.py +17 -5
- mindspore/profiler/parser/ascend_msprof_exporter.py +3 -3
- mindspore/profiler/parser/ascend_msprof_generator.py +10 -3
- mindspore/profiler/parser/ascend_op_generator.py +26 -9
- mindspore/profiler/parser/ascend_timeline_generator.py +7 -4
- mindspore/profiler/parser/profiler_info.py +11 -1
- mindspore/profiler/profiling.py +13 -5
- mindspore/rewrite/api/node.py +12 -12
- mindspore/rewrite/api/symbol_tree.py +11 -11
- mindspore/run_check/_check_version.py +1 -1
- mindspore/safeguard/rewrite_obfuscation.py +2 -2
- mindspore/train/amp.py +4 -4
- mindspore/train/anf_ir_pb2.py +8 -2
- mindspore/train/callback/_backup_and_restore.py +2 -2
- mindspore/train/callback/_callback.py +4 -4
- mindspore/train/callback/_checkpoint.py +2 -2
- mindspore/train/callback/_early_stop.py +2 -2
- mindspore/train/callback/_landscape.py +4 -4
- mindspore/train/callback/_loss_monitor.py +2 -2
- mindspore/train/callback/_on_request_exit.py +2 -2
- mindspore/train/callback/_reduce_lr_on_plateau.py +2 -2
- mindspore/train/callback/_summary_collector.py +2 -2
- mindspore/train/callback/_time_monitor.py +2 -2
- mindspore/train/dataset_helper.py +8 -3
- mindspore/train/loss_scale_manager.py +2 -2
- mindspore/train/metrics/metric.py +3 -3
- mindspore/train/mind_ir_pb2.py +22 -17
- mindspore/train/model.py +15 -15
- mindspore/train/serialization.py +18 -18
- mindspore/train/summary/summary_record.py +7 -7
- mindspore/train/train_thor/convert_utils.py +3 -3
- mindspore/version.py +1 -1
- {mindspore-2.3.0rc1.dist-info → mindspore-2.3.0rc2.dist-info}/METADATA +1 -1
- {mindspore-2.3.0rc1.dist-info → mindspore-2.3.0rc2.dist-info}/RECORD +307 -260
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/matmul_stridedslice/tiling_data.h +0 -59
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/FlashAttentionScore_bf16_BNSD_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/FlashAttentionScore_bf16_BSH_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/FlashAttentionScore_fp16_BNSD_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/FlashAttentionScore_fp16_BSH_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/PagedAttention_bf16_BNSD_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/PagedAttention_bf16_BSH_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/PagedAttention_fp16_BNSD_mix.o +0 -0
- mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/op_kernels/ascend910b/BSAttention/PagedAttention_fp16_BSH_mix.o +0 -0
- /mindspore/lib/plugin/ascend/ms_kernels_internal/internal_kernel/include/{attention/bs_attention_mix_hwsync.h → flash_attention_score/kernel/flash_attention_score_mix_hwsync.h} +0 -0
- {mindspore-2.3.0rc1.dist-info → mindspore-2.3.0rc2.dist-info}/WHEEL +0 -0
- {mindspore-2.3.0rc1.dist-info → mindspore-2.3.0rc2.dist-info}/entry_points.txt +0 -0
- {mindspore-2.3.0rc1.dist-info → mindspore-2.3.0rc2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,457 @@
|
|
|
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
|
+
"""mint module."""
|
|
16
|
+
from __future__ import absolute_import
|
|
17
|
+
from mindspore.ops.extend import *
|
|
18
|
+
from mindspore.ops.extend import array_func, math_func, nn_func
|
|
19
|
+
from mindspore.mint.nn.functional import *
|
|
20
|
+
from mindspore.mint.nn import functional
|
|
21
|
+
from mindspore.ops import erf, where, tril, triu
|
|
22
|
+
from mindspore.ops.function.math_func import linspace_ext as linspace
|
|
23
|
+
from mindspore.ops.function.array_func import full_ext as full
|
|
24
|
+
from mindspore.ops.function.array_func import ones_like_ext as ones_like
|
|
25
|
+
from mindspore.ops.function.array_func import zeros_like_ext as zeros_like
|
|
26
|
+
from mindspore.ops.auto_generate import abs
|
|
27
|
+
# 1
|
|
28
|
+
from mindspore.ops.function.math_func import divide, div
|
|
29
|
+
from mindspore.ops.function.array_func import topk_ext as topk
|
|
30
|
+
# 2
|
|
31
|
+
from mindspore.ops.function.math_func import sin
|
|
32
|
+
# 3
|
|
33
|
+
from mindspore.ops.function.clip_func import clamp
|
|
34
|
+
# 4
|
|
35
|
+
|
|
36
|
+
# 5
|
|
37
|
+
|
|
38
|
+
# 6
|
|
39
|
+
from mindspore.ops.auto_generate import stack_ext as stack
|
|
40
|
+
|
|
41
|
+
# 7
|
|
42
|
+
|
|
43
|
+
# 8
|
|
44
|
+
|
|
45
|
+
# 9
|
|
46
|
+
|
|
47
|
+
# 10
|
|
48
|
+
from mindspore.ops.function.math_func import ne
|
|
49
|
+
# 11
|
|
50
|
+
|
|
51
|
+
# 12
|
|
52
|
+
from mindspore.ops.function.array_func import repeat_interleave_ext as repeat_interleave
|
|
53
|
+
# 13
|
|
54
|
+
|
|
55
|
+
# 14
|
|
56
|
+
|
|
57
|
+
# 15
|
|
58
|
+
from mindspore.ops.auto_generate import flatten_ext as flatten
|
|
59
|
+
# 16
|
|
60
|
+
from mindspore.ops.functional import matmul
|
|
61
|
+
# 17
|
|
62
|
+
|
|
63
|
+
# 18
|
|
64
|
+
from mindspore.ops.functional import sum
|
|
65
|
+
# 19
|
|
66
|
+
from mindspore.ops.functional import log
|
|
67
|
+
# 20
|
|
68
|
+
from mindspore.ops.functional import prod
|
|
69
|
+
# 21
|
|
70
|
+
from mindspore.ops.functional import mul
|
|
71
|
+
# 22
|
|
72
|
+
|
|
73
|
+
# 23
|
|
74
|
+
from mindspore.ops.functional import mean_ext as mean
|
|
75
|
+
# 24
|
|
76
|
+
|
|
77
|
+
# 25
|
|
78
|
+
from mindspore.ops.functional import greater, gt
|
|
79
|
+
# 26
|
|
80
|
+
from mindspore.ops.functional import eq
|
|
81
|
+
# 27
|
|
82
|
+
from mindspore.ops.functional import reciprocal
|
|
83
|
+
# 28
|
|
84
|
+
from mindspore.ops.functional import exp
|
|
85
|
+
# 29
|
|
86
|
+
from mindspore.ops.functional import sqrt
|
|
87
|
+
# 30
|
|
88
|
+
|
|
89
|
+
# 31
|
|
90
|
+
|
|
91
|
+
# 32
|
|
92
|
+
|
|
93
|
+
# 33
|
|
94
|
+
from mindspore.ops.function.array_func import split_ext as split
|
|
95
|
+
# 34
|
|
96
|
+
|
|
97
|
+
# 35
|
|
98
|
+
from mindspore.ops.functional import erfinv
|
|
99
|
+
# 36
|
|
100
|
+
|
|
101
|
+
# 37
|
|
102
|
+
|
|
103
|
+
# 38
|
|
104
|
+
|
|
105
|
+
# 39
|
|
106
|
+
|
|
107
|
+
# 40
|
|
108
|
+
|
|
109
|
+
# 41
|
|
110
|
+
|
|
111
|
+
# 42
|
|
112
|
+
from mindspore.ops.functional import argmax
|
|
113
|
+
# 43
|
|
114
|
+
|
|
115
|
+
# 44
|
|
116
|
+
from mindspore.ops.functional import cos
|
|
117
|
+
# 45
|
|
118
|
+
|
|
119
|
+
# 46
|
|
120
|
+
|
|
121
|
+
# 47
|
|
122
|
+
|
|
123
|
+
# 48
|
|
124
|
+
|
|
125
|
+
# 49
|
|
126
|
+
|
|
127
|
+
# 50
|
|
128
|
+
from mindspore.ops.functional import tile
|
|
129
|
+
# 51
|
|
130
|
+
|
|
131
|
+
# 52
|
|
132
|
+
|
|
133
|
+
# 53
|
|
134
|
+
|
|
135
|
+
# 54
|
|
136
|
+
from mindspore.ops import normal_ext as normal
|
|
137
|
+
# 55
|
|
138
|
+
|
|
139
|
+
# 56
|
|
140
|
+
|
|
141
|
+
# 57
|
|
142
|
+
from mindspore.ops.functional import broadcast_to
|
|
143
|
+
# 58
|
|
144
|
+
|
|
145
|
+
# 59
|
|
146
|
+
from mindspore.ops.functional import square
|
|
147
|
+
# 60
|
|
148
|
+
from mindspore.ops.function.math_func import all
|
|
149
|
+
|
|
150
|
+
# 61
|
|
151
|
+
from mindspore.ops.functional import rsqrt
|
|
152
|
+
# 62
|
|
153
|
+
from mindspore.ops.functional import maximum
|
|
154
|
+
# 63
|
|
155
|
+
from mindspore.ops.functional import minimum
|
|
156
|
+
# 64
|
|
157
|
+
|
|
158
|
+
# 65
|
|
159
|
+
from mindspore.ops.functional import logical_and
|
|
160
|
+
# 66
|
|
161
|
+
from mindspore.ops.functional import logical_not
|
|
162
|
+
# 67
|
|
163
|
+
from mindspore.ops.functional import logical_or
|
|
164
|
+
# 68
|
|
165
|
+
|
|
166
|
+
# 69
|
|
167
|
+
from mindspore.ops.functional import less_equal, le
|
|
168
|
+
# 70
|
|
169
|
+
from mindspore.ops.functional import negative, neg
|
|
170
|
+
# 71
|
|
171
|
+
from mindspore.ops.functional import isfinite
|
|
172
|
+
# 72
|
|
173
|
+
|
|
174
|
+
# 73
|
|
175
|
+
from mindspore.ops.functional import ceil
|
|
176
|
+
# 74
|
|
177
|
+
|
|
178
|
+
# 75
|
|
179
|
+
from mindspore.ops.functional import less, lt
|
|
180
|
+
# 76
|
|
181
|
+
from mindspore.ops.functional import pow
|
|
182
|
+
# 77
|
|
183
|
+
|
|
184
|
+
# 78
|
|
185
|
+
from mindspore.ops.function import arange_ext as arange
|
|
186
|
+
# 79
|
|
187
|
+
|
|
188
|
+
# 80
|
|
189
|
+
|
|
190
|
+
# 81
|
|
191
|
+
|
|
192
|
+
# 82
|
|
193
|
+
|
|
194
|
+
# 83
|
|
195
|
+
|
|
196
|
+
# 84
|
|
197
|
+
|
|
198
|
+
# 85
|
|
199
|
+
|
|
200
|
+
# 86
|
|
201
|
+
|
|
202
|
+
# 87
|
|
203
|
+
|
|
204
|
+
# 88
|
|
205
|
+
from mindspore.ops.function.array_func import chunk_ext as chunk
|
|
206
|
+
# 89
|
|
207
|
+
|
|
208
|
+
# 90
|
|
209
|
+
|
|
210
|
+
# 91
|
|
211
|
+
|
|
212
|
+
# 92
|
|
213
|
+
|
|
214
|
+
# 93
|
|
215
|
+
|
|
216
|
+
# 94
|
|
217
|
+
from mindspore.ops.function.math_func import tanh
|
|
218
|
+
# 95
|
|
219
|
+
|
|
220
|
+
# 96
|
|
221
|
+
|
|
222
|
+
# 97
|
|
223
|
+
|
|
224
|
+
# 98
|
|
225
|
+
|
|
226
|
+
# 99
|
|
227
|
+
|
|
228
|
+
# 100
|
|
229
|
+
|
|
230
|
+
# 285
|
|
231
|
+
from mindspore.ops.function.array_func import scatter_add_ext as scatter_add
|
|
232
|
+
|
|
233
|
+
__all__ = [
|
|
234
|
+
'full',
|
|
235
|
+
'ones_like',
|
|
236
|
+
'zeros_like',
|
|
237
|
+
'erf',
|
|
238
|
+
'where',
|
|
239
|
+
'linspace',
|
|
240
|
+
# 1
|
|
241
|
+
'div',
|
|
242
|
+
'divide',
|
|
243
|
+
'topk',
|
|
244
|
+
# 2
|
|
245
|
+
'sin',
|
|
246
|
+
# 3
|
|
247
|
+
'clamp',
|
|
248
|
+
# 4
|
|
249
|
+
|
|
250
|
+
# 5
|
|
251
|
+
|
|
252
|
+
# 6
|
|
253
|
+
'stack',
|
|
254
|
+
# 7
|
|
255
|
+
|
|
256
|
+
# 8
|
|
257
|
+
|
|
258
|
+
# 9
|
|
259
|
+
|
|
260
|
+
# 10
|
|
261
|
+
'ne',
|
|
262
|
+
# 11
|
|
263
|
+
|
|
264
|
+
# 12
|
|
265
|
+
"repeat_interleave",
|
|
266
|
+
# 13
|
|
267
|
+
|
|
268
|
+
# 14
|
|
269
|
+
|
|
270
|
+
# 15
|
|
271
|
+
'flatten',
|
|
272
|
+
# 16
|
|
273
|
+
'matmul',
|
|
274
|
+
# 17
|
|
275
|
+
|
|
276
|
+
# 18
|
|
277
|
+
'sum',
|
|
278
|
+
# 19
|
|
279
|
+
'log',
|
|
280
|
+
# 20
|
|
281
|
+
'prod',
|
|
282
|
+
# 21
|
|
283
|
+
'mul',
|
|
284
|
+
# 22
|
|
285
|
+
|
|
286
|
+
# 23
|
|
287
|
+
'mean',
|
|
288
|
+
# 24
|
|
289
|
+
|
|
290
|
+
# 25
|
|
291
|
+
'greater',
|
|
292
|
+
'gt',
|
|
293
|
+
# 26
|
|
294
|
+
'eq',
|
|
295
|
+
# 27
|
|
296
|
+
'reciprocal',
|
|
297
|
+
# 28
|
|
298
|
+
'exp',
|
|
299
|
+
# 29
|
|
300
|
+
'sqrt',
|
|
301
|
+
# 30
|
|
302
|
+
|
|
303
|
+
# 31
|
|
304
|
+
|
|
305
|
+
# 32
|
|
306
|
+
|
|
307
|
+
# 33
|
|
308
|
+
'split',
|
|
309
|
+
# 34
|
|
310
|
+
|
|
311
|
+
# 35
|
|
312
|
+
'erfinv',
|
|
313
|
+
# 36
|
|
314
|
+
|
|
315
|
+
# 37
|
|
316
|
+
|
|
317
|
+
# 38
|
|
318
|
+
|
|
319
|
+
# 39
|
|
320
|
+
|
|
321
|
+
# 40
|
|
322
|
+
|
|
323
|
+
# 41
|
|
324
|
+
|
|
325
|
+
# 42
|
|
326
|
+
'argmax',
|
|
327
|
+
# 43
|
|
328
|
+
|
|
329
|
+
# 44
|
|
330
|
+
'cos',
|
|
331
|
+
# 45
|
|
332
|
+
|
|
333
|
+
# 46
|
|
334
|
+
|
|
335
|
+
# 47
|
|
336
|
+
|
|
337
|
+
# 48
|
|
338
|
+
|
|
339
|
+
# 49
|
|
340
|
+
|
|
341
|
+
# 50
|
|
342
|
+
'tile',
|
|
343
|
+
# 51
|
|
344
|
+
|
|
345
|
+
# 52
|
|
346
|
+
|
|
347
|
+
# 53
|
|
348
|
+
|
|
349
|
+
# 54
|
|
350
|
+
'normal',
|
|
351
|
+
# 55
|
|
352
|
+
|
|
353
|
+
# 56
|
|
354
|
+
|
|
355
|
+
# 57
|
|
356
|
+
'broadcast_to',
|
|
357
|
+
# 58
|
|
358
|
+
|
|
359
|
+
# 59
|
|
360
|
+
'square',
|
|
361
|
+
# 60
|
|
362
|
+
'all',
|
|
363
|
+
# 61
|
|
364
|
+
'rsqrt',
|
|
365
|
+
# 62
|
|
366
|
+
'maximum',
|
|
367
|
+
# 63
|
|
368
|
+
'minimum',
|
|
369
|
+
# 64
|
|
370
|
+
|
|
371
|
+
# 65
|
|
372
|
+
'logical_and',
|
|
373
|
+
# 66
|
|
374
|
+
'logical_not',
|
|
375
|
+
# 67
|
|
376
|
+
'logical_or',
|
|
377
|
+
# 68
|
|
378
|
+
|
|
379
|
+
# 69
|
|
380
|
+
'less_equal',
|
|
381
|
+
'le',
|
|
382
|
+
# 70
|
|
383
|
+
'negative',
|
|
384
|
+
'neg',
|
|
385
|
+
# 71
|
|
386
|
+
'isfinite',
|
|
387
|
+
# 72
|
|
388
|
+
|
|
389
|
+
# 73
|
|
390
|
+
'ceil',
|
|
391
|
+
# 74
|
|
392
|
+
|
|
393
|
+
# 75
|
|
394
|
+
'less',
|
|
395
|
+
'lt',
|
|
396
|
+
# 76
|
|
397
|
+
'pow',
|
|
398
|
+
# 77
|
|
399
|
+
|
|
400
|
+
# 78
|
|
401
|
+
'arange',
|
|
402
|
+
|
|
403
|
+
# 79
|
|
404
|
+
|
|
405
|
+
# 80
|
|
406
|
+
|
|
407
|
+
# 81
|
|
408
|
+
|
|
409
|
+
# 82
|
|
410
|
+
|
|
411
|
+
# 83
|
|
412
|
+
|
|
413
|
+
# 84
|
|
414
|
+
|
|
415
|
+
# 85
|
|
416
|
+
|
|
417
|
+
# 86
|
|
418
|
+
|
|
419
|
+
# 87
|
|
420
|
+
|
|
421
|
+
# 88
|
|
422
|
+
'chunk',
|
|
423
|
+
# 89
|
|
424
|
+
|
|
425
|
+
# 90
|
|
426
|
+
|
|
427
|
+
# 91
|
|
428
|
+
|
|
429
|
+
# 92
|
|
430
|
+
|
|
431
|
+
# 93
|
|
432
|
+
|
|
433
|
+
# 94
|
|
434
|
+
'tanh',
|
|
435
|
+
# 95
|
|
436
|
+
|
|
437
|
+
# 96
|
|
438
|
+
|
|
439
|
+
# 97
|
|
440
|
+
|
|
441
|
+
# 98
|
|
442
|
+
|
|
443
|
+
# 99
|
|
444
|
+
|
|
445
|
+
# 100
|
|
446
|
+
|
|
447
|
+
# 285
|
|
448
|
+
'scatter_add',
|
|
449
|
+
# 304
|
|
450
|
+
'tril',
|
|
451
|
+
# 305
|
|
452
|
+
'triu',
|
|
453
|
+
]
|
|
454
|
+
__all__.extend(array_func.__all__)
|
|
455
|
+
__all__.extend(math_func.__all__)
|
|
456
|
+
__all__.extend(nn_func.__all__)
|
|
457
|
+
__all__.extend(functional.__all__)
|