/third_party/mindspore/mindspore/ccsrc/utils/ |
D | comm_manager.cc | 77 auto mode = context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE); in CreateGroupSync() 91 if (context->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode) { in GetRankID() 107 if (context->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode) { in GetRankSize()
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/ |
D | arithmetic_simplify.cc | 32 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in operator ()() 44 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in operator ()() 78 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in operator ()()
|
D | gradient_eliminate.cc | 115 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in operator ()()
|
/third_party/mindspore/mindspore/ccsrc/vm/ |
D | backend.cc | 104 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in MsConvert() 215 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in CreateOutputTensor() 286 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in MsRunGraph() 352 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in MindRTBackend() 379 ms_execution_mode_ = context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE); in CompileGraphs() 449 context_ptr->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in CompileGraph() 456 context_ptr->set_param<int>(MS_CTX_EXECUTION_MODE, ms_execution_mode_); in CompileGraph()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ |
D | ascend_memory_pool.cc | 62 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in CalMemBlockAllocSize()
|
D | ascend_kernel_runtime.cc | 246 context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in ReportProfilingData() 299 if (context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode && in ReleaseDeviceRes() 326 auto execution_mode = ms_context->get_param<int>(MS_CTX_EXECUTION_MODE); in Init() 736 auto mode = context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE); in SetKernelModStream() 1082 auto mode = context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE); in HcclInit()
|
D | ascend_device_address.cc | 79 auto execution_mode = ms_context->get_param<int>(MS_CTX_EXECUTION_MODE); in SyncMemory() 166 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode && in SyncStream() 321 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode && in SyncDeviceToHostAndConvertFormat()
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/ |
D | gpu_device_context.cc | 252 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode) { in OptimizeGraphWithDeviceInfo() 370 bool is_pynative_mode = ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode; in UpdateDynamicShape() 425 if ((ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) && in LaunchKernel()
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ |
D | opt.cc | 308 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in ApplySubstitutionsToIR() 343 MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode && in operator ()()
|
D | optimizer.h | 204 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) {
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/ |
D | batch_norm_relu_grad_fusion.cc | 52 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in Process()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | transpose_transdata_fusion_test.cc | 86 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/ |
D | gpu_device_address.cc | 102 bool execution_mode = ms_context->get_param<int>(MS_CTX_EXECUTION_MODE); in SyncHostToDevice()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/ |
D | ms_context_py.cc | 87 .value("mode", MsCtxParam::MS_CTX_EXECUTION_MODE) in __anon7eb2a90d0202()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/ |
D | conv2d_unify_mindir.cc | 102 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in CreateTranspose() 130 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in CreateTranspose()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/ |
D | insert_trans_op_test.cc | 115 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
|
D | remove_internal_output_test.cc | 115 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/ |
D | action.cc | 622 if (ms_ctx->get_param<int>(MS_CTX_EXECUTION_MODE) != kGraphMode) { in IsCtrlSink() 653 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode) { in EliminateForwardCNode() 694 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode && in TaskEmitAction() 714 } else if (context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in TaskEmitAction() 754 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode && in ExecuteAction()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/ |
D | rectify_do_mask_kernel_info.cc | 41 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in Process()
|
/third_party/mindspore/mindspore/core/utils/ |
D | ms_context.cc | 71 set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in MsContext()
|
D | ms_context.h | 100 MS_CTX_EXECUTION_MODE = MS_CTX_TYPE_INT_BEGIN, enumerator
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/ |
D | insert_cast_cpu.cc | 136 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in Run()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/ |
D | transdata_split_test.cc | 107 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/runtime/framework/ |
D | graph_compiler.cc | 124 bool is_graph_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode); in CreateDeviceAddressForTensorValue() 343 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kGraphMode) { in CompileGraphImpl()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/ |
D | cpu_kernel_runtime.cc | 68 if (context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in AssignKernelAddress() 325 if (context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in BindInputTensorAddressPtr()
|