Home
last modified time | relevance | path

Searched refs:converted_ret (Results 1 – 9 of 9) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dcell_py.cc26 ValuePtr converted_ret = nullptr; in AddAttr() local
31 bool converted = parse::ConvertData(obj, &converted_ret, true); in AddAttr()
35 MS_LOG(DEBUG) << cell->ToString() << " add attr " << name << converted_ret->ToString(); in AddAttr()
36 cell->AddAttr(name, converted_ret); in AddAttr()
Dprimitive_py.cc396 ValuePtr converted_ret = nullptr; in AddPyAttr() local
400 bool converted = parse::ConvertData(obj, &converted_ret); in AddPyAttr()
407 (void)CheckAndConvertUtils::ConvertAttrValueToInt(name_, name, &converted_ret); in AddPyAttr()
408 attrs_[attr_name] = converted_ret; in AddPyAttr()
411 (void)prim->AddAttr(attr_name, converted_ret); in AddPyAttr()
415 MS_EXCEPTION_IF_NULL(converted_ret); in AddPyAttr()
416 if (!converted_ret->isa<StringImm>()) { in AddPyAttr()
420 auto target = GetValue<std::string>(converted_ret); in AddPyAttr()
/third_party/mindspore/tests/ut/cpp/parallel/
Dstep_parallel_test.cc306 ValuePtr converted_ret; in TEST_F() local
308 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
309 ASSERT_EQ(converted_ret->ToString(), "sum"); in TEST_F()
312 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
313 ASSERT_EQ(converted_ret->ToString(), "0-1-2"); in TEST_F()
315 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
316 ASSERT_EQ(converted_ret->ToString(), "0"); in TEST_F()
318 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
319 ASSERT_EQ(converted_ret->ToString(), "test"); in TEST_F()
321 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
[all …]
/third_party/mindspore/tests/ut/cpp/pynative/
Dpynative_execute_test.cc39 ValuePtr converted_ret; in PyAttrValue() local
40 bool converted = parse::ConvertData(obj, &converted_ret); in PyAttrValue()
44 return converted_ret; in PyAttrValue()
/third_party/mindspore/tests/ut/cpp/operator/
Dops_test.cc443 ValuePtr converted_ret; in TEST_F() local
444 parse::ConvertData(py::cast<py::object>(item.second), &converted_ret); in TEST_F()
445 MS_LOG(INFO) << "Attr value: " << converted_ret->ToString(); in TEST_F()
446 attrs.emplace(name, converted_ret); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dprim.cc557 ValuePtr converted_ret = nullptr; in PyInferRes2Abstract() local
559 bool converted = parse::ConvertData(output[ATTR_VALUE], &converted_ret, false, dtype); in PyInferRes2Abstract()
563 auto res_spec = FromValue(converted_ret); in PyInferRes2Abstract()
568 res_tensor->set_value(converted_ret); in PyInferRes2Abstract()
595 ValuePtr converted_ret = nullptr; in RunPyInferValue() local
597 bool converted = parse::ConvertData(py_ret, &converted_ret, false, dtype); in RunPyInferValue()
601 auto res_spec = FromValue(converted_ret); in RunPyInferValue()
606 res_tensor->set_value(converted_ret); in RunPyInferValue()
1224 ValuePtr converted_ret = nullptr; in EvalPrim() local
1225 bool converted = parse::ConvertData(obj, &converted_ret, true); in EvalPrim()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute_ge.cc49 ValuePtr converted_ret = nullptr; in PyAttrValue() local
50 bool converted = parse::ConvertData(obj, &converted_ret); in PyAttrValue()
54 return converted_ret; in PyAttrValue()
Dpynative_execute.cc133 ValuePtr converted_ret = parse::data_converter::PyDataToValue(obj); in PyObjToValue() local
134 if (!converted_ret) { in PyObjToValue()
137 return converted_ret; in PyObjToValue()
1486 ValuePtr converted_ret = nullptr; in MakeValueNode() local
1487 parse::ConvertData(obj, &converted_ret); in MakeValueNode()
1488 auto node = NewValueNode(converted_ret); in MakeValueNode()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Daction.cc355 ValuePtr converted_ret = nullptr; in ParseAction() local
356 bool converted = parse::ConvertData(input, &converted_ret, true); in ParseAction()
363 top_graph = parse::MakeTopGraph(input, converted_ret); in ParseAction()
364 } else if (converted_ret->isa<FuncGraph>()) { in ParseAction()
365 top_graph = converted_ret->cast<FuncGraphPtr>(); in ParseAction()