Home
last modified time | relevance | path

Searched refs:kPynativeMode (Results 1 – 25 of 36) sorted by relevance

12

/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 ()()
Ditem_tuple_or_list_eliminate.h216 if (execution_mode == kPynativeMode) { in operator()
/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_device_address.cc85 if (execution_mode != kPynativeMode || kind != RT_MEMCPY_HOST_TO_DEVICE) { 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()
Dascend_kernel_runtime.cc246 context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in ReportProfilingData()
331 if (execution_mode == kPynativeMode && profiling_flag) { in Init()
764 } else if (AnfAlgo::IsIndependentNode(node) && mode != kPynativeMode) { in SetKernelModStream()
/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()
447 if (contain_multi_target && ms_execution_mode_ == kPynativeMode) { in CompileGraph()
823 if (real_execution_mode_ == kPynativeMode) { in RunGraph()
/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/mindspore/ccsrc/runtime/device/gpu/
Dgpu_device_address.cc103 if (execution_mode != kPynativeMode) { in SyncHostToDevice()
Dkernel_info_setter.cc205 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in IsNeedProcessFormatInfo()
/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/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/ccsrc/backend/optimizer/cpu/
Dinsert_cast_cpu.cc136 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in Run()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.cc370 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/core/utils/
Dms_context.h49 const int kPynativeMode = 1; variable
/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()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/hccl/
Dhcom_util.cc29 return ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode; in IsPyNativeMode()
Dhccl_kernel.cc201 mode == kPynativeMode) { in GetWorkspaceSizeList()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dgpu_session.cc361 ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in LoadInputData()
443 const bool pynative_mode = context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode; in CompileGraphImpl()
Dcpu_session.cc87 …if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode && ps::PSContext::instance(… in Optimize()
Dsession_basic.cc154 return ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode; in IsPynativeMode()
237 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode && in CreateNodeOutputTensor()
1626 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode && in UpdateOutputs()
1643 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) != kPynativeMode) { in UpdateOutputs()
2079 if (context_ptr->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in ConstructOutput()
2469 const bool pynative_mode = (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode); in InitAllBucket()
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
Ddump_json_parser.cc77 if (context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in IsDumpEnabled()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_adapter.cc374 if (ms_context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) { in FormatPass()

12