Home
last modified time | relevance | path

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

123

/third_party/mindspore/mindspore/core/utils/
Dms_context.cc36 set_param<bool>(MS_CTX_SAVE_GRAPHS_FLAG, false); in MsContext()
37 set_param<std::string>(MS_CTX_SAVE_GRAPHS_PATH, "."); in MsContext()
43 set_param<std::string>(MS_CTX_PYTHON_EXE_PATH, "python"); in MsContext()
44 set_param<std::string>(MS_CTX_KERNEL_BUILD_SERVER_DIR, ""); in MsContext()
45 set_param<bool>(MS_CTX_ENABLE_DUMP, false); in MsContext()
46 set_param<std::string>(MS_CTX_SAVE_DUMP_PATH, "."); in MsContext()
47 set_param<std::string>(MS_CTX_ENV_CONFIG_PATH, ""); in MsContext()
48 set_param<std::string>(MS_CTX_TUNE_MODE, "NO_TUNE"); in MsContext()
49 set_param<std::string>(MS_CTX_GRAPH_KERNEL_FLAGS, ""); in MsContext()
50 set_param<uint32_t>(MS_CTX_TSD_REF, 0); in MsContext()
[all …]
Dms_context.h163 void set_param(MsCtxParam param, const T &value) { in set_param() function
202 inline void MsContext::set_param<bool>(MsCtxParam param, const bool &value) {
212 inline void MsContext::set_param<int>(MsCtxParam param, const int &value) {
217 inline void MsContext::set_param<uint32_t>(MsCtxParam param, const uint32_t &value) {
222 inline void MsContext::set_param<float>(MsCtxParam param, const float &value) {
227 inline void MsContext::set_param<std::string>(MsCtxParam param, const std::string &value) {
/third_party/mindspore/mindspore/
Dcontext.py170 def set_param(self, param, value): member in _Context
171 self._context_handle.set_param(param, value)
190 self.set_param(ms_ctx_param.mode, mode)
198 self.set_param(ms_ctx_param.save_graphs_path, _make_directory(save_graphs_path))
206 self.set_param(ms_ctx_param.device_target, target)
213 self.set_param(ms_ctx_param.tune_mode, tune_mode)
220 self.set_param(ms_ctx_param.device_id, device_id)
225 self.set_param(ms_ctx_param.max_call_depth, max_call_depth)
230 self.set_param(ms_ctx_param.profiling_options, option)
241 self.set_param(ms_ctx_param.variable_memory_max_size, variable_memory_max_size_)
[all …]
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/
Dms_context_py.cc29 ctx->set_param<bool>(param, value.cast<bool>()); in MsCtxSetParameter()
33 ctx->set_param<int>(param, value.cast<int>()); in MsCtxSetParameter()
37 ctx->set_param<uint32_t>(param, value.cast<uint32_t>()); in MsCtxSetParameter()
41 ctx->set_param<float>(param, value.cast<float>()); in MsCtxSetParameter()
45 ctx->set_param<std::string>(param, value.cast<std::string>()); in MsCtxSetParameter()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/gpu/
Dgpu_graph_impl.cc56 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in InitEnv()
57 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id_); in InitEnv()
58 ms_context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kGPUDevice); in InitEnv()
75 ms_context->set_param<bool>(MS_CTX_ENABLE_INFER_OPT, true); in InitEnv()
76 ms_context->set_param<std::string>(MS_CTX_INFER_PRECISION_MODE, gpu_info->GetPrecisionMode()); in InitEnv()
/third_party/mindspore/mindspore/ccsrc/utils/context/
Dcontext_extends.cc116 ms_context_ptr->set_param<uint32_t>(MS_CTX_TSD_REF, 0); in CloseTsd()
132 ms_context_ptr->set_param<bool>(MS_CTX_IS_PYNATIVE_GE_INIT, false); in CloseTsd()
314 ms_context_ptr->set_param(MS_CTX_IS_PYNATIVE_GE_INIT, true); in PynativeInitGe()
328 ms_context_ptr->set_param<uint32_t>(MS_CTX_GE_REF, 0); in FinalizeGe()
341 ms_context_ptr->set_param<bool>(MS_CTX_IS_PYNATIVE_GE_INIT, false); in FinalizeGe()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/ascend/
Dascend_graph_impl.cc301 ms_context->set_param<bool>(MS_CTX_ENABLE_HCCL, true); in MsEnvGuard()
304 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in MsEnvGuard()
305 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id_); in MsEnvGuard()
306 ms_context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in MsEnvGuard()
307 ms_context->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, true); in MsEnvGuard()
/third_party/mindspore/tests/ut/cpp/tbe/
Dtbe_json_creator_test.cc44 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
89 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
132 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
190 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
244 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
315 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/acl/
Dacl_model_multi.cc104 context_ptr->set_param<std::string>(MS_CTX_DEVICE_TARGET, kDavinciMultiGraphInferenceDevice); in Build()
105 context_ptr->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, false); in Build()
106 context_ptr->set_param<bool>(MS_CTX_ENABLE_LOOP_SINK, false); in Build()
/third_party/python/Lib/email/
Dcontentmanager.py118 msg.set_param('filename',
126 msg.set_param(key, value)
187 msg.set_param('charset',
Dmessage.py350 self.set_param('charset', charset.get_output_charset())
701 def set_param(self, param, value, header='Content-Type', requote=True, member in Message
804 self.set_param(p, v, header, requote)
1128 self.set_param('boundary', boundary)
/third_party/mindspore/mindspore/ccsrc/vm/
Dtransform.cc586 context_ptr->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, false); in CreateBackend()
590 context_ptr->set_param<bool>(MS_CTX_ENABLE_TASK_SINK, false); in CreateBackend()
594 context_ptr->set_param<bool>(MS_CTX_ENABLE_MEM_SCHEDULER, true); in CreateBackend()
595 context_ptr->set_param<bool>(MS_CTX_ENABLE_TASK_SINK, false); in CreateBackend()
628 context_ptr->set_param<bool>(MS_CTX_ENABLE_MINDRT, true); in SetMindRTEnable()
/third_party/mindspore/tests/ut/cpp/pynative/
Dpynative_execute_test.cc77 ctx3->set_param<std::string>(MS_CTX_DEVICE_TARGET, "GPU"); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Daction.cc100 context_ptr->set_param<bool>(MS_CTX_ENABLE_MINDRT, false); in ResetMindRTEnable()
712 context_ptr->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, false); in TaskEmitAction()
713 context_ptr->set_param<bool>(MS_CTX_ENABLE_LOOP_SINK, false); in TaskEmitAction()
723 context_ptr->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, true); in TaskEmitAction()
727 context_ptr->set_param<bool>(MS_CTX_IS_MULTI_GRAPH_SINK, false); in TaskEmitAction()
728 context_ptr->set_param<bool>(MS_CTX_ENABLE_LOOP_SINK, false); in TaskEmitAction()
Dpipeline.cc1135 ms_context->set_param<std::string>(MS_CTX_PYTHON_EXE_PATH, py_exe_path_s); in PyExePath()
1144 ms_context->set_param<std::string>(MS_CTX_KERNEL_BUILD_SERVER_DIR, kernel_build_server_dir_s); in KernelBuildServerDir()
1293 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id); in InitHccl()
1294 ms_context->set_param<bool>(MS_CTX_ENABLE_TASK_SINK, false); in InitHccl()
1298 ms_context->set_param<bool>(MS_CTX_ENABLE_HCCL, true); in InitHccl()
/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/ffmpeg/libavfilter/
Dvf_eq.c303 static inline int set_param(AVExpr **pexpr, const char *args, const char *cmd, in set_param() function
321 …if (!strcmp(cmd, #param_name)) return set_param(&eq->param_name##_pexpr, args, cmd, set_##set_fn_n… in process_command()
Dvf_frei0r.c89 static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, char *param) in set_param() function
163 ret = set_param(ctx, info, i, param); in set_params()
/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/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/python/Lib/test/test_email/
Dtest_email.py458 msg.set_param('charset', 'iso-2022-jp')
460 msg.set_param('importance', 'high value')
469 msg.set_param('charset', 'iso-9999-xx', header='X-Jimmy')
483 msg.set_param("report-type", old_val)
513 msg.set_param('charset', 'us-ascii')
4006 msg.set_param('title', 'test')
5070 msg.set_param('title', 'This is even more ***fun*** isn\'t it!',
5074 msg.set_param('title', 'This is even more ***fun*** isn\'t it!',
5079 msg.set_param('title', 'This is even more ***fun*** isn\'t it!',
5106 msg.set_param('title', 'foo')
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_roboswitch.c485 .set_param = wpa_driver_roboswitch_set_param,
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/
Deliminate_redundant_op_test.cc79 ms_context->set_param<int>(MS_CTX_EXECUTION_MODE, kGraphMode); in TEST_F()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_roboswitch.c485 .set_param = wpa_driver_roboswitch_set_param,

123