mindspore 2.3.0rc1__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.
- mindspore/.commit_id +1 -1
- mindspore/__init__.py +1 -1
- mindspore/_akg/akg/utils/tbe_codegen_utils.py +13 -3
- mindspore/_c_dataengine.cpython-39-aarch64-linux-gnu.so +0 -0
- mindspore/_c_expression.cpython-39-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-39-aarch64-linux-gnu.so +0 -0
- mindspore/amp.py +5 -5
- 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/libopencv_imgcodecs.so.4.5 +0 -0
- mindspore/lib/libopencv_imgproc.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
|
@@ -144,7 +144,7 @@ class AdjustBrightness(ImageTensorOperation, PyTensorOperation):
|
|
|
144
144
|
|
|
145
145
|
Tutorial Examples:
|
|
146
146
|
- `Illustration of vision transforms
|
|
147
|
-
<https://www.mindspore.cn/docs/en/
|
|
147
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
148
148
|
"""
|
|
149
149
|
|
|
150
150
|
@check_adjust_brightness
|
|
@@ -194,7 +194,7 @@ class AdjustBrightness(ImageTensorOperation, PyTensorOperation):
|
|
|
194
194
|
|
|
195
195
|
Tutorial Examples:
|
|
196
196
|
- `Illustration of vision transforms
|
|
197
|
-
<https://www.mindspore.cn/docs/en/
|
|
197
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
198
198
|
"""
|
|
199
199
|
self.device_target = device_target
|
|
200
200
|
return self
|
|
@@ -257,7 +257,7 @@ class AdjustContrast(ImageTensorOperation, PyTensorOperation):
|
|
|
257
257
|
|
|
258
258
|
Tutorial Examples:
|
|
259
259
|
- `Illustration of vision transforms
|
|
260
|
-
<https://www.mindspore.cn/docs/en/
|
|
260
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
261
261
|
"""
|
|
262
262
|
|
|
263
263
|
@check_adjust_contrast
|
|
@@ -306,7 +306,7 @@ class AdjustContrast(ImageTensorOperation, PyTensorOperation):
|
|
|
306
306
|
|
|
307
307
|
Tutorial Examples:
|
|
308
308
|
- `Illustration of vision transforms
|
|
309
|
-
<https://www.mindspore.cn/docs/en/
|
|
309
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
310
310
|
"""
|
|
311
311
|
self.device_target = device_target
|
|
312
312
|
return self
|
|
@@ -377,7 +377,7 @@ class AdjustGamma(ImageTensorOperation, PyTensorOperation):
|
|
|
377
377
|
|
|
378
378
|
Tutorial Examples:
|
|
379
379
|
- `Illustration of vision transforms
|
|
380
|
-
<https://www.mindspore.cn/docs/en/
|
|
380
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
381
381
|
"""
|
|
382
382
|
|
|
383
383
|
@check_adjust_gamma
|
|
@@ -444,7 +444,7 @@ class AdjustHue(ImageTensorOperation, PyTensorOperation):
|
|
|
444
444
|
|
|
445
445
|
Tutorial Examples:
|
|
446
446
|
- `Illustration of vision transforms
|
|
447
|
-
<https://www.mindspore.cn/docs/en/
|
|
447
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
448
448
|
"""
|
|
449
449
|
|
|
450
450
|
@check_adjust_hue
|
|
@@ -493,7 +493,7 @@ class AdjustHue(ImageTensorOperation, PyTensorOperation):
|
|
|
493
493
|
|
|
494
494
|
Tutorial Examples:
|
|
495
495
|
- `Illustration of vision transforms
|
|
496
|
-
<https://www.mindspore.cn/docs/en/
|
|
496
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
497
497
|
"""
|
|
498
498
|
self.device_target = device_target
|
|
499
499
|
return self
|
|
@@ -557,7 +557,7 @@ class AdjustSaturation(ImageTensorOperation, PyTensorOperation):
|
|
|
557
557
|
|
|
558
558
|
Tutorial Examples:
|
|
559
559
|
- `Illustration of vision transforms
|
|
560
|
-
<https://www.mindspore.cn/docs/en/
|
|
560
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
561
561
|
"""
|
|
562
562
|
|
|
563
563
|
@check_adjust_saturation
|
|
@@ -606,7 +606,7 @@ class AdjustSaturation(ImageTensorOperation, PyTensorOperation):
|
|
|
606
606
|
|
|
607
607
|
Tutorial Examples:
|
|
608
608
|
- `Illustration of vision transforms
|
|
609
|
-
<https://www.mindspore.cn/docs/en/
|
|
609
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
610
610
|
"""
|
|
611
611
|
self.device_target = device_target
|
|
612
612
|
return self
|
|
@@ -668,7 +668,7 @@ class AdjustSharpness(ImageTensorOperation):
|
|
|
668
668
|
|
|
669
669
|
Tutorial Examples:
|
|
670
670
|
- `Illustration of vision transforms
|
|
671
|
-
<https://www.mindspore.cn/docs/en/
|
|
671
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
672
672
|
"""
|
|
673
673
|
|
|
674
674
|
@check_adjust_sharpness
|
|
@@ -740,7 +740,7 @@ class Affine(ImageTensorOperation):
|
|
|
740
740
|
|
|
741
741
|
Tutorial Examples:
|
|
742
742
|
- `Illustration of vision transforms
|
|
743
|
-
<https://www.mindspore.cn/docs/en/
|
|
743
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
744
744
|
"""
|
|
745
745
|
|
|
746
746
|
@check_affine
|
|
@@ -805,7 +805,7 @@ class Affine(ImageTensorOperation):
|
|
|
805
805
|
|
|
806
806
|
Tutorial Examples:
|
|
807
807
|
- `Illustration of vision transforms
|
|
808
|
-
<https://www.mindspore.cn/docs/en/
|
|
808
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
809
809
|
"""
|
|
810
810
|
self.device_target = device_target
|
|
811
811
|
return self
|
|
@@ -875,7 +875,7 @@ class AutoAugment(ImageTensorOperation):
|
|
|
875
875
|
|
|
876
876
|
Tutorial Examples:
|
|
877
877
|
- `Illustration of vision transforms
|
|
878
|
-
<https://www.mindspore.cn/docs/en/
|
|
878
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
879
879
|
"""
|
|
880
880
|
|
|
881
881
|
@check_auto_augment
|
|
@@ -937,7 +937,7 @@ class AutoContrast(ImageTensorOperation, PyTensorOperation):
|
|
|
937
937
|
|
|
938
938
|
Tutorial Examples:
|
|
939
939
|
- `Illustration of vision transforms
|
|
940
|
-
<https://www.mindspore.cn/docs/en/
|
|
940
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
941
941
|
"""
|
|
942
942
|
|
|
943
943
|
@check_auto_contrast
|
|
@@ -1024,7 +1024,7 @@ class BoundingBoxAugment(ImageTensorOperation):
|
|
|
1024
1024
|
|
|
1025
1025
|
Tutorial Examples:
|
|
1026
1026
|
- `Illustration of vision transforms
|
|
1027
|
-
<https://www.mindspore.cn/docs/en/
|
|
1027
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1028
1028
|
"""
|
|
1029
1029
|
|
|
1030
1030
|
@check_bounding_box_augment_cpp
|
|
@@ -1095,7 +1095,7 @@ class CenterCrop(ImageTensorOperation, PyTensorOperation):
|
|
|
1095
1095
|
|
|
1096
1096
|
Tutorial Examples:
|
|
1097
1097
|
- `Illustration of vision transforms
|
|
1098
|
-
<https://www.mindspore.cn/docs/en/
|
|
1098
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1099
1099
|
"""
|
|
1100
1100
|
|
|
1101
1101
|
@check_center_crop
|
|
@@ -1209,7 +1209,7 @@ class ConvertColor(ImageTensorOperation):
|
|
|
1209
1209
|
|
|
1210
1210
|
Tutorial Examples:
|
|
1211
1211
|
- `Illustration of vision transforms
|
|
1212
|
-
<https://www.mindspore.cn/docs/en/
|
|
1212
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1213
1213
|
"""
|
|
1214
1214
|
|
|
1215
1215
|
@check_convert_color
|
|
@@ -1270,7 +1270,7 @@ class Crop(ImageTensorOperation):
|
|
|
1270
1270
|
|
|
1271
1271
|
Tutorial Examples:
|
|
1272
1272
|
- `Illustration of vision transforms
|
|
1273
|
-
<https://www.mindspore.cn/docs/en/
|
|
1273
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1274
1274
|
"""
|
|
1275
1275
|
|
|
1276
1276
|
@check_crop
|
|
@@ -1324,7 +1324,7 @@ class Crop(ImageTensorOperation):
|
|
|
1324
1324
|
|
|
1325
1325
|
Tutorial Examples:
|
|
1326
1326
|
- `Illustration of vision transforms
|
|
1327
|
-
<https://www.mindspore.cn/docs/en/
|
|
1327
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1328
1328
|
"""
|
|
1329
1329
|
self.device_target = device_target
|
|
1330
1330
|
return self
|
|
@@ -1394,7 +1394,7 @@ class CutMixBatch(ImageTensorOperation):
|
|
|
1394
1394
|
|
|
1395
1395
|
Tutorial Examples:
|
|
1396
1396
|
- `Illustration of vision transforms
|
|
1397
|
-
<https://www.mindspore.cn/docs/en/
|
|
1397
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1398
1398
|
"""
|
|
1399
1399
|
|
|
1400
1400
|
@check_cut_mix_batch_c
|
|
@@ -1453,7 +1453,7 @@ class CutOut(ImageTensorOperation):
|
|
|
1453
1453
|
|
|
1454
1454
|
Tutorial Examples:
|
|
1455
1455
|
- `Illustration of vision transforms
|
|
1456
|
-
<https://www.mindspore.cn/docs/en/
|
|
1456
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1457
1457
|
"""
|
|
1458
1458
|
|
|
1459
1459
|
@check_cutout_new
|
|
@@ -1536,7 +1536,7 @@ class Decode(ImageTensorOperation, PyTensorOperation):
|
|
|
1536
1536
|
|
|
1537
1537
|
Tutorial Examples:
|
|
1538
1538
|
- `Illustration of vision transforms
|
|
1539
|
-
<https://www.mindspore.cn/docs/en/
|
|
1539
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1540
1540
|
"""
|
|
1541
1541
|
|
|
1542
1542
|
@check_decode
|
|
@@ -1629,7 +1629,7 @@ class Decode(ImageTensorOperation, PyTensorOperation):
|
|
|
1629
1629
|
|
|
1630
1630
|
Tutorial Examples:
|
|
1631
1631
|
- `Illustration of vision transforms
|
|
1632
|
-
<https://www.mindspore.cn/docs/en/
|
|
1632
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1633
1633
|
"""
|
|
1634
1634
|
if self.implementation == Implementation.PY and device_target == "Ascend":
|
|
1635
1635
|
raise ValueError("The transform \"Decode(to_pil=True)\" cannot be performed on Ascend device, " +
|
|
@@ -1687,7 +1687,7 @@ class Equalize(ImageTensorOperation, PyTensorOperation):
|
|
|
1687
1687
|
|
|
1688
1688
|
Tutorial Examples:
|
|
1689
1689
|
- `Illustration of vision transforms
|
|
1690
|
-
<https://www.mindspore.cn/docs/en/
|
|
1690
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1691
1691
|
"""
|
|
1692
1692
|
|
|
1693
1693
|
def __init__(self):
|
|
@@ -1765,7 +1765,7 @@ class Erase(ImageTensorOperation):
|
|
|
1765
1765
|
|
|
1766
1766
|
Tutorial Examples:
|
|
1767
1767
|
- `Illustration of vision transforms
|
|
1768
|
-
<https://www.mindspore.cn/docs/en/
|
|
1768
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1769
1769
|
"""
|
|
1770
1770
|
|
|
1771
1771
|
@check_erase
|
|
@@ -1853,7 +1853,7 @@ class FiveCrop(PyTensorOperation):
|
|
|
1853
1853
|
|
|
1854
1854
|
Tutorial Examples:
|
|
1855
1855
|
- `Illustration of vision transforms
|
|
1856
|
-
<https://www.mindspore.cn/docs/en/
|
|
1856
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1857
1857
|
"""
|
|
1858
1858
|
|
|
1859
1859
|
@check_five_crop
|
|
@@ -1929,7 +1929,7 @@ class GaussianBlur(ImageTensorOperation):
|
|
|
1929
1929
|
|
|
1930
1930
|
Tutorial Examples:
|
|
1931
1931
|
- `Illustration of vision transforms
|
|
1932
|
-
<https://www.mindspore.cn/docs/en/
|
|
1932
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1933
1933
|
"""
|
|
1934
1934
|
|
|
1935
1935
|
@check_gaussian_blur
|
|
@@ -1988,7 +1988,7 @@ class GaussianBlur(ImageTensorOperation):
|
|
|
1988
1988
|
|
|
1989
1989
|
Tutorial Examples:
|
|
1990
1990
|
- `Illustration of vision transforms
|
|
1991
|
-
<https://www.mindspore.cn/docs/en/
|
|
1991
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
1992
1992
|
"""
|
|
1993
1993
|
self.device_target = device_target
|
|
1994
1994
|
if device_target == "Ascend":
|
|
@@ -2067,7 +2067,7 @@ class Grayscale(PyTensorOperation):
|
|
|
2067
2067
|
|
|
2068
2068
|
Tutorial Examples:
|
|
2069
2069
|
- `Illustration of vision transforms
|
|
2070
|
-
<https://www.mindspore.cn/docs/en/
|
|
2070
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2071
2071
|
"""
|
|
2072
2072
|
|
|
2073
2073
|
@check_num_channels
|
|
@@ -2123,7 +2123,7 @@ class HorizontalFlip(ImageTensorOperation):
|
|
|
2123
2123
|
|
|
2124
2124
|
Tutorial Examples:
|
|
2125
2125
|
- `Illustration of vision transforms
|
|
2126
|
-
<https://www.mindspore.cn/docs/en/
|
|
2126
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2127
2127
|
"""
|
|
2128
2128
|
|
|
2129
2129
|
def __init__(self):
|
|
@@ -2172,7 +2172,7 @@ class HorizontalFlip(ImageTensorOperation):
|
|
|
2172
2172
|
|
|
2173
2173
|
Tutorial Examples:
|
|
2174
2174
|
- `Illustration of vision transforms
|
|
2175
|
-
<https://www.mindspore.cn/docs/en/
|
|
2175
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2176
2176
|
"""
|
|
2177
2177
|
self.device_target = device_target
|
|
2178
2178
|
return self
|
|
@@ -2222,7 +2222,7 @@ class HsvToRgb(PyTensorOperation):
|
|
|
2222
2222
|
|
|
2223
2223
|
Tutorial Examples:
|
|
2224
2224
|
- `Illustration of vision transforms
|
|
2225
|
-
<https://www.mindspore.cn/docs/en/
|
|
2225
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2226
2226
|
"""
|
|
2227
2227
|
|
|
2228
2228
|
@check_hsv_to_rgb
|
|
@@ -2285,7 +2285,7 @@ class HWC2CHW(ImageTensorOperation):
|
|
|
2285
2285
|
|
|
2286
2286
|
Tutorial Examples:
|
|
2287
2287
|
- `Illustration of vision transforms
|
|
2288
|
-
<https://www.mindspore.cn/docs/en/
|
|
2288
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2289
2289
|
"""
|
|
2290
2290
|
|
|
2291
2291
|
def __init__(self):
|
|
@@ -2333,7 +2333,7 @@ class Invert(ImageTensorOperation, PyTensorOperation):
|
|
|
2333
2333
|
|
|
2334
2334
|
Tutorial Examples:
|
|
2335
2335
|
- `Illustration of vision transforms
|
|
2336
|
-
<https://www.mindspore.cn/docs/en/
|
|
2336
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2337
2337
|
"""
|
|
2338
2338
|
|
|
2339
2339
|
def __init__(self):
|
|
@@ -2409,7 +2409,7 @@ class LinearTransformation(PyTensorOperation):
|
|
|
2409
2409
|
|
|
2410
2410
|
Tutorial Examples:
|
|
2411
2411
|
- `Illustration of vision transforms
|
|
2412
|
-
<https://www.mindspore.cn/docs/en/
|
|
2412
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2413
2413
|
"""
|
|
2414
2414
|
|
|
2415
2415
|
@check_linear_transform
|
|
@@ -2497,7 +2497,7 @@ class MixUp(PyTensorOperation):
|
|
|
2497
2497
|
|
|
2498
2498
|
Tutorial Examples:
|
|
2499
2499
|
- `Illustration of vision transforms
|
|
2500
|
-
<https://www.mindspore.cn/docs/en/
|
|
2500
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2501
2501
|
"""
|
|
2502
2502
|
|
|
2503
2503
|
@check_mix_up
|
|
@@ -2592,7 +2592,7 @@ class MixUpBatch(ImageTensorOperation):
|
|
|
2592
2592
|
|
|
2593
2593
|
Tutorial Examples:
|
|
2594
2594
|
- `Illustration of vision transforms
|
|
2595
|
-
<https://www.mindspore.cn/docs/en/
|
|
2595
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2596
2596
|
"""
|
|
2597
2597
|
|
|
2598
2598
|
@check_mix_up_batch_c
|
|
@@ -2659,7 +2659,7 @@ class Normalize(ImageTensorOperation):
|
|
|
2659
2659
|
|
|
2660
2660
|
Tutorial Examples:
|
|
2661
2661
|
- `Illustration of vision transforms
|
|
2662
|
-
<https://www.mindspore.cn/docs/en/
|
|
2662
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2663
2663
|
"""
|
|
2664
2664
|
|
|
2665
2665
|
@check_normalize
|
|
@@ -2718,7 +2718,7 @@ class Normalize(ImageTensorOperation):
|
|
|
2718
2718
|
|
|
2719
2719
|
Tutorial Examples:
|
|
2720
2720
|
- `Illustration of vision transforms
|
|
2721
|
-
<https://www.mindspore.cn/docs/en/
|
|
2721
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2722
2722
|
"""
|
|
2723
2723
|
self.device_target = device_target
|
|
2724
2724
|
return self
|
|
@@ -2856,7 +2856,7 @@ class Pad(ImageTensorOperation, PyTensorOperation):
|
|
|
2856
2856
|
|
|
2857
2857
|
Tutorial Examples:
|
|
2858
2858
|
- `Illustration of vision transforms
|
|
2859
|
-
<https://www.mindspore.cn/docs/en/
|
|
2859
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2860
2860
|
"""
|
|
2861
2861
|
|
|
2862
2862
|
@check_pad
|
|
@@ -2912,7 +2912,7 @@ class Pad(ImageTensorOperation, PyTensorOperation):
|
|
|
2912
2912
|
|
|
2913
2913
|
Tutorial Examples:
|
|
2914
2914
|
- `Illustration of vision transforms
|
|
2915
|
-
<https://www.mindspore.cn/docs/en/
|
|
2915
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2916
2916
|
"""
|
|
2917
2917
|
self.device_target = device_target
|
|
2918
2918
|
return self
|
|
@@ -2993,7 +2993,7 @@ class PadToSize(ImageTensorOperation):
|
|
|
2993
2993
|
|
|
2994
2994
|
Tutorial Examples:
|
|
2995
2995
|
- `Illustration of vision transforms
|
|
2996
|
-
<https://www.mindspore.cn/docs/en/
|
|
2996
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
2997
2997
|
"""
|
|
2998
2998
|
|
|
2999
2999
|
@check_pad_to_size
|
|
@@ -3064,7 +3064,7 @@ class Perspective(ImageTensorOperation, PyTensorOperation):
|
|
|
3064
3064
|
|
|
3065
3065
|
Tutorial Examples:
|
|
3066
3066
|
- `Illustration of vision transforms
|
|
3067
|
-
<https://www.mindspore.cn/docs/en/
|
|
3067
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3068
3068
|
"""
|
|
3069
3069
|
|
|
3070
3070
|
@check_perspective
|
|
@@ -3126,7 +3126,7 @@ class Perspective(ImageTensorOperation, PyTensorOperation):
|
|
|
3126
3126
|
|
|
3127
3127
|
Tutorial Examples:
|
|
3128
3128
|
- `Illustration of vision transforms
|
|
3129
|
-
<https://www.mindspore.cn/docs/en/
|
|
3129
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3130
3130
|
"""
|
|
3131
3131
|
self.device_target = device_target
|
|
3132
3132
|
return self
|
|
@@ -3188,7 +3188,7 @@ class Posterize(ImageTensorOperation):
|
|
|
3188
3188
|
|
|
3189
3189
|
Tutorial Examples:
|
|
3190
3190
|
- `Illustration of vision transforms
|
|
3191
|
-
<https://www.mindspore.cn/docs/en/
|
|
3191
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3192
3192
|
"""
|
|
3193
3193
|
|
|
3194
3194
|
@check_posterize
|
|
@@ -3261,7 +3261,7 @@ class RandAugment(ImageTensorOperation):
|
|
|
3261
3261
|
|
|
3262
3262
|
Tutorial Examples:
|
|
3263
3263
|
- `Illustration of vision transforms
|
|
3264
|
-
<https://www.mindspore.cn/docs/en/
|
|
3264
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3265
3265
|
"""
|
|
3266
3266
|
|
|
3267
3267
|
@check_rand_augment
|
|
@@ -3325,7 +3325,7 @@ class RandomAdjustSharpness(ImageTensorOperation):
|
|
|
3325
3325
|
|
|
3326
3326
|
Tutorial Examples:
|
|
3327
3327
|
- `Illustration of vision transforms
|
|
3328
|
-
<https://www.mindspore.cn/docs/en/
|
|
3328
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3329
3329
|
"""
|
|
3330
3330
|
|
|
3331
3331
|
@check_random_adjust_sharpness
|
|
@@ -3419,7 +3419,7 @@ class RandomAffine(ImageTensorOperation, PyTensorOperation):
|
|
|
3419
3419
|
|
|
3420
3420
|
Tutorial Examples:
|
|
3421
3421
|
- `Illustration of vision transforms
|
|
3422
|
-
<https://www.mindspore.cn/docs/en/
|
|
3422
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3423
3423
|
"""
|
|
3424
3424
|
|
|
3425
3425
|
@check_random_affine
|
|
@@ -3538,7 +3538,7 @@ class RandomAutoContrast(ImageTensorOperation):
|
|
|
3538
3538
|
|
|
3539
3539
|
Tutorial Examples:
|
|
3540
3540
|
- `Illustration of vision transforms
|
|
3541
|
-
<https://www.mindspore.cn/docs/en/
|
|
3541
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3542
3542
|
"""
|
|
3543
3543
|
|
|
3544
3544
|
@check_random_auto_contrast
|
|
@@ -3598,7 +3598,7 @@ class RandomColor(ImageTensorOperation, PyTensorOperation):
|
|
|
3598
3598
|
|
|
3599
3599
|
Tutorial Examples:
|
|
3600
3600
|
- `Illustration of vision transforms
|
|
3601
|
-
<https://www.mindspore.cn/docs/en/
|
|
3601
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3602
3602
|
"""
|
|
3603
3603
|
|
|
3604
3604
|
@check_positive_degrees
|
|
@@ -3688,7 +3688,7 @@ class RandomColorAdjust(ImageTensorOperation, PyTensorOperation):
|
|
|
3688
3688
|
|
|
3689
3689
|
Tutorial Examples:
|
|
3690
3690
|
- `Illustration of vision transforms
|
|
3691
|
-
<https://www.mindspore.cn/docs/en/
|
|
3691
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3692
3692
|
"""
|
|
3693
3693
|
|
|
3694
3694
|
@check_random_color_adjust
|
|
@@ -3809,7 +3809,7 @@ class RandomCrop(ImageTensorOperation, PyTensorOperation):
|
|
|
3809
3809
|
|
|
3810
3810
|
Tutorial Examples:
|
|
3811
3811
|
- `Illustration of vision transforms
|
|
3812
|
-
<https://www.mindspore.cn/docs/en/
|
|
3812
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3813
3813
|
"""
|
|
3814
3814
|
|
|
3815
3815
|
@check_random_crop
|
|
@@ -3934,7 +3934,7 @@ class RandomCropDecodeResize(ImageTensorOperation):
|
|
|
3934
3934
|
|
|
3935
3935
|
Tutorial Examples:
|
|
3936
3936
|
- `Illustration of vision transforms
|
|
3937
|
-
<https://www.mindspore.cn/docs/en/
|
|
3937
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
3938
3938
|
"""
|
|
3939
3939
|
|
|
3940
3940
|
@check_random_resize_crop
|
|
@@ -4048,7 +4048,7 @@ class RandomCropWithBBox(ImageTensorOperation):
|
|
|
4048
4048
|
|
|
4049
4049
|
Tutorial Examples:
|
|
4050
4050
|
- `Illustration of vision transforms
|
|
4051
|
-
<https://www.mindspore.cn/docs/en/
|
|
4051
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4052
4052
|
"""
|
|
4053
4053
|
|
|
4054
4054
|
@check_random_crop
|
|
@@ -4116,7 +4116,7 @@ class RandomEqualize(ImageTensorOperation):
|
|
|
4116
4116
|
|
|
4117
4117
|
Tutorial Examples:
|
|
4118
4118
|
- `Illustration of vision transforms
|
|
4119
|
-
<https://www.mindspore.cn/docs/en/
|
|
4119
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4120
4120
|
"""
|
|
4121
4121
|
|
|
4122
4122
|
@check_prob
|
|
@@ -4194,7 +4194,7 @@ class RandomErasing(PyTensorOperation):
|
|
|
4194
4194
|
|
|
4195
4195
|
Tutorial Examples:
|
|
4196
4196
|
- `Illustration of vision transforms
|
|
4197
|
-
<https://www.mindspore.cn/docs/en/
|
|
4197
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4198
4198
|
"""
|
|
4199
4199
|
|
|
4200
4200
|
@check_random_erasing
|
|
@@ -4292,7 +4292,7 @@ class RandomGrayscale(PyTensorOperation):
|
|
|
4292
4292
|
|
|
4293
4293
|
Tutorial Examples:
|
|
4294
4294
|
- `Illustration of vision transforms
|
|
4295
|
-
<https://www.mindspore.cn/docs/en/
|
|
4295
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4296
4296
|
"""
|
|
4297
4297
|
|
|
4298
4298
|
@check_prob
|
|
@@ -4362,7 +4362,7 @@ class RandomHorizontalFlip(ImageTensorOperation, PyTensorOperation):
|
|
|
4362
4362
|
|
|
4363
4363
|
Tutorial Examples:
|
|
4364
4364
|
- `Illustration of vision transforms
|
|
4365
|
-
<https://www.mindspore.cn/docs/en/
|
|
4365
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4366
4366
|
"""
|
|
4367
4367
|
|
|
4368
4368
|
@check_prob
|
|
@@ -4436,7 +4436,7 @@ class RandomHorizontalFlipWithBBox(ImageTensorOperation):
|
|
|
4436
4436
|
|
|
4437
4437
|
Tutorial Examples:
|
|
4438
4438
|
- `Illustration of vision transforms
|
|
4439
|
-
<https://www.mindspore.cn/docs/en/
|
|
4439
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4440
4440
|
"""
|
|
4441
4441
|
|
|
4442
4442
|
@check_prob
|
|
@@ -4488,7 +4488,7 @@ class RandomInvert(ImageTensorOperation):
|
|
|
4488
4488
|
|
|
4489
4489
|
Tutorial Examples:
|
|
4490
4490
|
- `Illustration of vision transforms
|
|
4491
|
-
<https://www.mindspore.cn/docs/en/
|
|
4491
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4492
4492
|
"""
|
|
4493
4493
|
|
|
4494
4494
|
@check_prob
|
|
@@ -4540,7 +4540,7 @@ class RandomLighting(ImageTensorOperation, PyTensorOperation):
|
|
|
4540
4540
|
|
|
4541
4541
|
Tutorial Examples:
|
|
4542
4542
|
- `Illustration of vision transforms
|
|
4543
|
-
<https://www.mindspore.cn/docs/en/
|
|
4543
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4544
4544
|
"""
|
|
4545
4545
|
|
|
4546
4546
|
@check_alpha
|
|
@@ -4637,7 +4637,7 @@ class RandomPerspective(PyTensorOperation):
|
|
|
4637
4637
|
|
|
4638
4638
|
Tutorial Examples:
|
|
4639
4639
|
- `Illustration of vision transforms
|
|
4640
|
-
<https://www.mindspore.cn/docs/en/
|
|
4640
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4641
4641
|
"""
|
|
4642
4642
|
|
|
4643
4643
|
@check_random_perspective
|
|
@@ -4712,7 +4712,7 @@ class RandomPosterize(ImageTensorOperation):
|
|
|
4712
4712
|
|
|
4713
4713
|
Tutorial Examples:
|
|
4714
4714
|
- `Illustration of vision transforms
|
|
4715
|
-
<https://www.mindspore.cn/docs/en/
|
|
4715
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4716
4716
|
"""
|
|
4717
4717
|
|
|
4718
4718
|
@check_random_posterize
|
|
@@ -4789,7 +4789,7 @@ class RandomResizedCrop(ImageTensorOperation, PyTensorOperation):
|
|
|
4789
4789
|
|
|
4790
4790
|
Tutorial Examples:
|
|
4791
4791
|
- `Illustration of vision transforms
|
|
4792
|
-
<https://www.mindspore.cn/docs/en/
|
|
4792
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4793
4793
|
"""
|
|
4794
4794
|
|
|
4795
4795
|
@check_random_resize_crop
|
|
@@ -4898,7 +4898,7 @@ class RandomResizedCropWithBBox(ImageTensorOperation):
|
|
|
4898
4898
|
|
|
4899
4899
|
Tutorial Examples:
|
|
4900
4900
|
- `Illustration of vision transforms
|
|
4901
|
-
<https://www.mindspore.cn/docs/en/
|
|
4901
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4902
4902
|
"""
|
|
4903
4903
|
|
|
4904
4904
|
@check_random_resize_crop
|
|
@@ -4969,7 +4969,7 @@ class RandomResize(ImageTensorOperation):
|
|
|
4969
4969
|
|
|
4970
4970
|
Tutorial Examples:
|
|
4971
4971
|
- `Illustration of vision transforms
|
|
4972
|
-
<https://www.mindspore.cn/docs/en/
|
|
4972
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
4973
4973
|
"""
|
|
4974
4974
|
|
|
4975
4975
|
@check_resize
|
|
@@ -5054,7 +5054,7 @@ class RandomResizeWithBBox(ImageTensorOperation):
|
|
|
5054
5054
|
|
|
5055
5055
|
Tutorial Examples:
|
|
5056
5056
|
- `Illustration of vision transforms
|
|
5057
|
-
<https://www.mindspore.cn/docs/en/
|
|
5057
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5058
5058
|
"""
|
|
5059
5059
|
|
|
5060
5060
|
@check_resize
|
|
@@ -5130,7 +5130,7 @@ class RandomRotation(ImageTensorOperation, PyTensorOperation):
|
|
|
5130
5130
|
|
|
5131
5131
|
Tutorial Examples:
|
|
5132
5132
|
- `Illustration of vision transforms
|
|
5133
|
-
<https://www.mindspore.cn/docs/en/
|
|
5133
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5134
5134
|
"""
|
|
5135
5135
|
|
|
5136
5136
|
@check_random_rotation
|
|
@@ -5229,7 +5229,7 @@ class RandomSelectSubpolicy(ImageTensorOperation):
|
|
|
5229
5229
|
|
|
5230
5230
|
Tutorial Examples:
|
|
5231
5231
|
- `Illustration of vision transforms
|
|
5232
|
-
<https://www.mindspore.cn/docs/en/
|
|
5232
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5233
5233
|
"""
|
|
5234
5234
|
|
|
5235
5235
|
@check_random_select_subpolicy_op
|
|
@@ -5292,7 +5292,7 @@ class RandomSharpness(ImageTensorOperation, PyTensorOperation):
|
|
|
5292
5292
|
|
|
5293
5293
|
Tutorial Examples:
|
|
5294
5294
|
- `Illustration of vision transforms
|
|
5295
|
-
<https://www.mindspore.cn/docs/en/
|
|
5295
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5296
5296
|
"""
|
|
5297
5297
|
|
|
5298
5298
|
@check_positive_degrees
|
|
@@ -5359,7 +5359,7 @@ class RandomSolarize(ImageTensorOperation):
|
|
|
5359
5359
|
|
|
5360
5360
|
Tutorial Examples:
|
|
5361
5361
|
- `Illustration of vision transforms
|
|
5362
|
-
<https://www.mindspore.cn/docs/en/
|
|
5362
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5363
5363
|
"""
|
|
5364
5364
|
|
|
5365
5365
|
@check_random_solarize
|
|
@@ -5411,7 +5411,7 @@ class RandomVerticalFlip(ImageTensorOperation, PyTensorOperation):
|
|
|
5411
5411
|
|
|
5412
5412
|
Tutorial Examples:
|
|
5413
5413
|
- `Illustration of vision transforms
|
|
5414
|
-
<https://www.mindspore.cn/docs/en/
|
|
5414
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5415
5415
|
"""
|
|
5416
5416
|
|
|
5417
5417
|
@check_prob
|
|
@@ -5484,7 +5484,7 @@ class RandomVerticalFlipWithBBox(ImageTensorOperation):
|
|
|
5484
5484
|
|
|
5485
5485
|
Tutorial Examples:
|
|
5486
5486
|
- `Illustration of vision transforms
|
|
5487
|
-
<https://www.mindspore.cn/docs/en/
|
|
5487
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5488
5488
|
"""
|
|
5489
5489
|
|
|
5490
5490
|
@check_prob
|
|
@@ -5540,7 +5540,7 @@ class Rescale(ImageTensorOperation):
|
|
|
5540
5540
|
|
|
5541
5541
|
Tutorial Examples:
|
|
5542
5542
|
- `Illustration of vision transforms
|
|
5543
|
-
<https://www.mindspore.cn/docs/en/
|
|
5543
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5544
5544
|
"""
|
|
5545
5545
|
|
|
5546
5546
|
@check_rescale
|
|
@@ -5602,7 +5602,7 @@ class Resize(ImageTensorOperation, PyTensorOperation):
|
|
|
5602
5602
|
|
|
5603
5603
|
Tutorial Examples:
|
|
5604
5604
|
- `Illustration of vision transforms
|
|
5605
|
-
<https://www.mindspore.cn/docs/en/
|
|
5605
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5606
5606
|
"""
|
|
5607
5607
|
|
|
5608
5608
|
@check_resize_interpolation
|
|
@@ -5662,7 +5662,7 @@ class Resize(ImageTensorOperation, PyTensorOperation):
|
|
|
5662
5662
|
|
|
5663
5663
|
Tutorial Examples:
|
|
5664
5664
|
- `Illustration of vision transforms
|
|
5665
|
-
<https://www.mindspore.cn/docs/en/
|
|
5665
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5666
5666
|
"""
|
|
5667
5667
|
self.device_target = device_target
|
|
5668
5668
|
if self.interpolation == Inter.ANTIALIAS and self.device_target == "Ascend":
|
|
@@ -5747,7 +5747,7 @@ class ResizedCrop(ImageTensorOperation):
|
|
|
5747
5747
|
|
|
5748
5748
|
Tutorial Examples:
|
|
5749
5749
|
- `Illustration of vision transforms
|
|
5750
|
-
<https://www.mindspore.cn/docs/en/
|
|
5750
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5751
5751
|
"""
|
|
5752
5752
|
|
|
5753
5753
|
@check_resized_crop
|
|
@@ -5807,7 +5807,7 @@ class ResizedCrop(ImageTensorOperation):
|
|
|
5807
5807
|
|
|
5808
5808
|
Tutorial Examples:
|
|
5809
5809
|
- `Illustration of vision transforms
|
|
5810
|
-
<https://www.mindspore.cn/docs/en/
|
|
5810
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5811
5811
|
"""
|
|
5812
5812
|
self.device_target = device_target
|
|
5813
5813
|
return self
|
|
@@ -5873,7 +5873,7 @@ class ResizeWithBBox(ImageTensorOperation):
|
|
|
5873
5873
|
|
|
5874
5874
|
Tutorial Examples:
|
|
5875
5875
|
- `Illustration of vision transforms
|
|
5876
|
-
<https://www.mindspore.cn/docs/en/
|
|
5876
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5877
5877
|
"""
|
|
5878
5878
|
|
|
5879
5879
|
@check_resize_interpolation
|
|
@@ -5931,7 +5931,7 @@ class RgbToHsv(PyTensorOperation):
|
|
|
5931
5931
|
|
|
5932
5932
|
Tutorial Examples:
|
|
5933
5933
|
- `Illustration of vision transforms
|
|
5934
|
-
<https://www.mindspore.cn/docs/en/
|
|
5934
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
5935
5935
|
"""
|
|
5936
5936
|
|
|
5937
5937
|
@check_rgb_to_hsv
|
|
@@ -6009,7 +6009,7 @@ class Rotate(ImageTensorOperation):
|
|
|
6009
6009
|
|
|
6010
6010
|
Tutorial Examples:
|
|
6011
6011
|
- `Illustration of vision transforms
|
|
6012
|
-
<https://www.mindspore.cn/docs/en/
|
|
6012
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6013
6013
|
"""
|
|
6014
6014
|
|
|
6015
6015
|
@check_rotate
|
|
@@ -6094,7 +6094,7 @@ class SlicePatches(ImageTensorOperation):
|
|
|
6094
6094
|
|
|
6095
6095
|
Tutorial Examples:
|
|
6096
6096
|
- `Illustration of vision transforms
|
|
6097
|
-
<https://www.mindspore.cn/docs/en/
|
|
6097
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6098
6098
|
"""
|
|
6099
6099
|
|
|
6100
6100
|
@check_slice_patches
|
|
@@ -6151,7 +6151,7 @@ class Solarize(ImageTensorOperation):
|
|
|
6151
6151
|
|
|
6152
6152
|
Tutorial Examples:
|
|
6153
6153
|
- `Illustration of vision transforms
|
|
6154
|
-
<https://www.mindspore.cn/docs/en/
|
|
6154
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6155
6155
|
"""
|
|
6156
6156
|
|
|
6157
6157
|
@check_solarize
|
|
@@ -6237,7 +6237,7 @@ class TenCrop(PyTensorOperation):
|
|
|
6237
6237
|
|
|
6238
6238
|
Tutorial Examples:
|
|
6239
6239
|
- `Illustration of vision transforms
|
|
6240
|
-
<https://www.mindspore.cn/docs/en/
|
|
6240
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6241
6241
|
"""
|
|
6242
6242
|
|
|
6243
6243
|
@check_ten_crop
|
|
@@ -6299,7 +6299,7 @@ class ToNumpy(PyTensorOperation):
|
|
|
6299
6299
|
|
|
6300
6300
|
Tutorial Examples:
|
|
6301
6301
|
- `Illustration of vision transforms
|
|
6302
|
-
<https://www.mindspore.cn/docs/en/
|
|
6302
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6303
6303
|
"""
|
|
6304
6304
|
|
|
6305
6305
|
def __init__(self):
|
|
@@ -6359,7 +6359,7 @@ class ToPIL(PyTensorOperation):
|
|
|
6359
6359
|
|
|
6360
6360
|
Tutorial Examples:
|
|
6361
6361
|
- `Illustration of vision transforms
|
|
6362
|
-
<https://www.mindspore.cn/docs/en/
|
|
6362
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6363
6363
|
"""
|
|
6364
6364
|
|
|
6365
6365
|
def __init__(self):
|
|
@@ -6423,7 +6423,7 @@ class ToTensor(ImageTensorOperation):
|
|
|
6423
6423
|
|
|
6424
6424
|
Tutorial Examples:
|
|
6425
6425
|
- `Illustration of vision transforms
|
|
6426
|
-
<https://www.mindspore.cn/docs/en/
|
|
6426
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6427
6427
|
"""
|
|
6428
6428
|
|
|
6429
6429
|
@check_to_tensor
|
|
@@ -6489,7 +6489,7 @@ class ToType(TypeCast):
|
|
|
6489
6489
|
|
|
6490
6490
|
Tutorial Examples:
|
|
6491
6491
|
- `Illustration of vision transforms
|
|
6492
|
-
<https://www.mindspore.cn/docs/en/
|
|
6492
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6493
6493
|
"""
|
|
6494
6494
|
|
|
6495
6495
|
|
|
@@ -6549,7 +6549,7 @@ class TrivialAugmentWide(ImageTensorOperation):
|
|
|
6549
6549
|
|
|
6550
6550
|
Tutorial Examples:
|
|
6551
6551
|
- `Illustration of vision transforms
|
|
6552
|
-
<https://www.mindspore.cn/docs/en/
|
|
6552
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6553
6553
|
"""
|
|
6554
6554
|
|
|
6555
6555
|
@check_trivial_augment_wide
|
|
@@ -6624,7 +6624,7 @@ class UniformAugment(CompoundOperation):
|
|
|
6624
6624
|
|
|
6625
6625
|
Tutorial Examples:
|
|
6626
6626
|
- `Illustration of vision transforms
|
|
6627
|
-
<https://www.mindspore.cn/docs/en/
|
|
6627
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6628
6628
|
"""
|
|
6629
6629
|
|
|
6630
6630
|
@check_uniform_augment
|
|
@@ -6683,7 +6683,7 @@ class VerticalFlip(ImageTensorOperation):
|
|
|
6683
6683
|
|
|
6684
6684
|
Tutorial Examples:
|
|
6685
6685
|
- `Illustration of vision transforms
|
|
6686
|
-
<https://www.mindspore.cn/docs/en/
|
|
6686
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6687
6687
|
"""
|
|
6688
6688
|
|
|
6689
6689
|
def __init__(self):
|
|
@@ -6732,7 +6732,7 @@ class VerticalFlip(ImageTensorOperation):
|
|
|
6732
6732
|
|
|
6733
6733
|
Tutorial Examples:
|
|
6734
6734
|
- `Illustration of vision transforms
|
|
6735
|
-
<https://www.mindspore.cn/docs/en/
|
|
6735
|
+
<https://www.mindspore.cn/docs/en/master/api_python/samples/dataset/vision_gallery.html>`_
|
|
6736
6736
|
"""
|
|
6737
6737
|
self.device_target = device_target
|
|
6738
6738
|
return self
|