Home
last modified time | relevance | path

Searched refs:gradients_mean (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mindspore/tests/ut/python/parallel/
Dtest_set_auto_parallel_context.py23 …context.set_auto_parallel_context(device_num=4, global_rank=3, gradients_mean=True, gradient_fp32_…
28 gradients_mean = context.get_auto_parallel_context("gradients_mean")
35 assert gradients_mean
52 gradients_mean = auto_parallel_context().get_gradients_mean()
53 assert gradients_mean
104 gradients_mean = context.get_auto_parallel_context("gradients_mean")
116 assert not gradients_mean
Dtest_repeated_calc.py71 context.set_auto_parallel_context(device_num=64, global_rank=0, gradients_mean=True)
96 context.set_auto_parallel_context(device_num=64, global_rank=0, gradients_mean=True)
Dtest_two_matmul.py69 context.set_auto_parallel_context(device_num=8, global_rank=0, gradients_mean=True)
94 context.set_auto_parallel_context(device_num=64, global_rank=5, gradients_mean=True)
Dtest_optimizer.py49 …context.set_auto_parallel_context(parallel_mode=ParallelMode.HYBRID_PARALLEL, gradients_mean=True,…
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dcontext.h62 void set_gradients_mean(bool gradients_mean);
63 bool gradients_mean() const { return gradients_mean_; } in gradients_mean() function
Dcontext.cc90 void ParallelContext::set_gradients_mean(bool gradients_mean) { gradients_mean_ = gradients_mean; } in set_gradients_mean() argument
/third_party/mindspore/mindspore/parallel/
D_auto_parallel_context.py121 def set_gradients_mean(self, gradients_mean): argument
132 self._context_handle.set_gradients_mean(gradients_mean)
680 @args_type_check(device_num=int, global_rank=int, gradients_mean=bool, gradient_fp32_sync=bool,
/third_party/mindspore/tests/ut/python/communication/
Dtest_data_parallel_dense.py61 …context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True, d…
Dtest_data_parallel_lenet.py83 device_num=8, gradients_mean=True)
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dbucket.cc89 auto grad_mean = parallel_context->gradients_mean(); in CalculateMean()
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/python_file_for_ci/
Dtrain_and_test_multinpu_ci.py34 context.set_auto_parallel_context(parallel_mode=ParallelMode.SEMI_AUTO_PARALLEL, gradients_mean=Tru…
/third_party/mindspore/tests/st/pynative/data_parallel/
Dtest_pynative_hccl_allreduce.py62 … context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=False,
Dtest_pynative_hccl.py52 context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True,
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/
Dtrain_and_test_multinpu_ci_data_parallel.py33 context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True)
/third_party/mindspore/tests/st/ps/multi_full_ps/
Dtest_multi_full_ps.py103 context.set_auto_parallel_context(parallel_mode="data_parallel", gradients_mean=True,
/third_party/mindspore/tests/st/nccl/
Dtest_nccl_lenet.py81 …context.set_auto_parallel_context(parallel_mode="data_parallel", gradients_mean=True, device_num=g…
/third_party/mindspore/tests/st/networks/models/resnet50/
Dtest_resnet50_imagenet.py142 gradients_mean=True, all_reduce_fusion_config=[107, 160])
240 gradients_mean=True, all_reduce_fusion_config=[85, 160])
/third_party/mindspore/tests/ut/python/train/
Dtest_amp.py152 gradients_mean=True, parameter_broadcast=True,
/third_party/mindspore/tests/st/hcom/
Dhcom_sparsetensor.py164 …_auto_parallel_context(parallel_mode=ParallelMode.AUTO_PARALLEL, device_num=8, gradients_mean=True)
/third_party/mindspore/tests/st/networks/models/bert/bert_performance/
Dtest_bert_thor.py157 context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True,
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/
Dtest_yolov3_darknet53.py122 … context.set_auto_parallel_context(parallel_mode=parallel_mode, gradients_mean=True, device_num=1)
/third_party/mindspore/tests/ut/python/model/
Dtest_mix_precision.py100 …context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL, gradients_mean=True, d…
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Doperator_info.cc378 bool mean_flag = ParallelContext::GetInstance()->gradients_mean(); in AddCommOpMeanFlag()
416 bool mean_flag = ParallelContext::GetInstance()->gradients_mean(); in CreateMiniStepAllGatherOp()
439 bool mean_flag = ParallelContext::GetInstance()->gradients_mean(); in CreateMicroStepAllGatherOp()
483 bool mean_flag = ParallelContext::GetInstance()->gradients_mean(); in CreateMirrorOps()
/third_party/mindspore/mindspore/
Dcontext.py345 @args_type_check(device_num=int, global_rank=int, gradients_mean=bool, gradient_fp32_sync=bool, par…
/third_party/mindspore/tests/st/auto_parallel/
Dresnet50_expand_loss.py37 context.set_auto_parallel_context(gradients_mean=True, parallel_mode=ParallelMode.AUTO_PARALLEL)

12