Home
last modified time | relevance | path

Searched refs:MS_CTX_EXECUTION_MODE (Results 1 – 25 of 52) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/utils/
Dcomm_manager.cc77 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/
Darithmetic_simplify.cc32 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 ()()
Dgradient_eliminate.cc115 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in operator ()()
/third_party/mindspore/mindspore/ccsrc/vm/
Dbackend.cc104 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/
Dascend_memory_pool.cc62 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in CalMemBlockAllocSize()
Dascend_kernel_runtime.cc246 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()
Dascend_device_address.cc79 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/
Dgpu_device_context.cc252 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/
Dopt.cc308 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 ()()
Doptimizer.h204 if (MsContext::GetInstance()->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) {
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbatch_norm_relu_grad_fusion.cc52 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in Process()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/
Dtranspose_transdata_fusion_test.cc86 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_device_address.cc102 bool execution_mode = ms_context->get_param<int>(MS_CTX_EXECUTION_MODE); in SyncHostToDevice()
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/
Dms_context_py.cc87 .value("mode", MsCtxParam::MS_CTX_EXECUTION_MODE) in __anon7eb2a90d0202()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/
Dconv2d_unify_mindir.cc102 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/
Dinsert_trans_op_test.cc115 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
Dremove_internal_output_test.cc115 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Daction.cc622 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/
Drectify_do_mask_kernel_info.cc41 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in Process()
/third_party/mindspore/mindspore/core/utils/
Dms_context.cc71 set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in MsContext()
Dms_context.h100 MS_CTX_EXECUTION_MODE = MS_CTX_TYPE_INT_BEGIN, enumerator
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/
Dinsert_cast_cpu.cc136 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in Run()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/
Dtransdata_split_test.cc107 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/
Dgraph_compiler.cc124 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/
Dcpu_kernel_runtime.cc68 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()

123