Home
last modified time | relevance | path

Searched refs:backend_policy (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/tests/ut/cpp/pynative/
Dpynative_execute_test.cc73 ASSERT_EQ(ctx3->backend_policy(), "vm"); in TEST_F()
81 ASSERT_EQ(ctx4->backend_policy(), "ge_only"); in TEST_F()
88 ASSERT_EQ(std::string(ctx->backend_policy()), "ge_only"); in TEST_F()
/third_party/mindspore/
Dsetup.py26 backend_policy = os.getenv('BACKEND_POLICY') variable
50 file.write("__backend__ = '{}'\n".format(backend_policy))
/third_party/mindspore/mindspore/core/utils/
Dms_context.h143 MsContext(const std::string &backend_policy, const std::string &target);
152 std::string backend_policy() const;
Dms_context.cc176 std::string MsContext::backend_policy() const { in backend_policy() function in mindspore::MsContext
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dpipeline.cc665 std::string backend = ms_context->backend_policy(); in GetGeBackendPolicy()
690 std::string backend = MsContext::GetInstance()->backend_policy(); in GetPipeline()
961 if (ms_context->backend_policy() == kMsConvert && py::isinstance<py::array>(arg)) { in ProcessVmArgInner()
1030 std::string backend = MsContext::GetInstance()->backend_policy(); in Run()
1040 if (MsContext::GetInstance()->backend_policy() == kMsConvert) { in Run()
1150 std::string name = MsContext::GetInstance()->backend_policy(); in InitExecDataset()
1167 std::string backend = MsContext::GetInstance()->backend_policy(); in InitExecDataset()
1299 if (ms_context->backend_policy() == "ms" && in InitHccl()
1395 if (ms_context->backend_policy() == "ms" && in StartUpProfiling()
Daction.cc707 std::string backend = MsContext::GetInstance()->backend_policy(); in TaskEmitAction()
761 std::string backend = MsContext::GetInstance()->backend_policy(); in ExecuteAction()
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/
Dms_context_py.cc108 … .def("get_backend_policy", &mindspore::MsContext::backend_policy, "Get backend policy.") in __anon41857d0f0202()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.cc1801 auto backend_policy = InitEnv(op_exec_info); in RunOpWithInitBackendPolicy() local
1804 py::object result = RunOpWithBackendPolicy(backend_policy, op_exec_info, &status); in RunOpWithInitBackendPolicy()
1816 MsBackendPolicy backend_policy; in InitEnv() local
1825 if (ms_context->backend_policy() == "ms") { in InitEnv()
1826 backend_policy = kMsBackendMsPrior; in InitEnv()
1828 backend_policy = kMsBackendVmOnly; in InitEnv()
1834 backend_policy = kMsBackendGeOnly; in InitEnv()
1837 backend_policy = kMsBackendVmOnly; in InitEnv()
1839 return backend_policy; in InitEnv()
1842 py::object ForwardExecutor::RunOpWithBackendPolicy(MsBackendPolicy backend_policy, const OpExecInfo… in RunOpWithBackendPolicy() argument
[all …]
Dpynative_execute.h337 …py::object RunOpWithBackendPolicy(MsBackendPolicy backend_policy, const OpExecInfoPtr &op_exec_inf…
/third_party/mindspore/mindspore/ccsrc/vm/
Dtransform.cc566 std::string name = context_ptr->backend_policy(); in CreateBackend()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Dparse.cc1154 if (MsContext::GetInstance()->backend_policy() != "ge") { in ParseIf()