Home
last modified time | relevance | path

Searched refs:PrimitivePyPtr (Results 1 – 16 of 16) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dprimitive_py.h39 using PrimitivePyPtr = std::shared_ptr<PrimitivePy>; variable
102 void set_attached_primitive(const PrimitivePyPtr &prim);
103 PrimitivePyPtr attached_primitive() { return attached_primitive_.lock(); } in attached_primitive()
Dprimitive_py.cc316 auto primitive_py = primitive->cast<PrimitivePyPtr>(); in CopyHookFunction()
496 void PrimitivePyAdapter::set_attached_primitive(const PrimitivePyPtr &prim) { in set_attached_primitive()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dpattern.h108 PrimitivePyPtr matched_primitive() { return matched_prim_; } in matched_primitive()
116 vector<PrimitivePyPtr> primitives_;
118 PrimitivePyPtr matched_prim_{nullptr};
Dpy_pass.cc62 PrimitivePyPtr prim = prim_pattern->matched_primitive(); in BuildPrimitive()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dprim.h56 explicit PythonPrimEvaluator(const PrimitivePyPtr primitive) in PythonPrimEvaluator()
66 PrimitivePyPtr prim_py_;
Dstatic_analysis.h283 std::unordered_map<PrimitivePyPtr, EvaluatorPtr> prim_py_evaluators_;
Dprim.cc514 py::tuple PreparePyInputs(const PrimitivePyPtr &, const AbstractBasePtrList &args) { in PreparePyInputs() argument
549 AbstractBasePtr PyInferRes2Abstract(const PrimitivePyPtr &prim_py, const py::dict &output) { in PyInferRes2Abstract()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dbase.h59 PrimitivePyPtr py_primitive;
Dpynative_execute.h354 …void DoSignatrueCast(const PrimitivePyPtr &prim, const std::unordered_map<SignatureEnumDType, Type…
Dpynative_execute.cc276 bool GetSignatureType(const PrimitivePyPtr &prim, std::vector<SignatureEnumDType> *dtypes) { in GetSignatureType()
292 void PynativeInfer(const PrimitivePyPtr &prim, OpExecInfo *const op_exec_info, in PynativeInfer()
1211 void ForwardExecutor::DoSignatrueCast(const PrimitivePyPtr &prim, in DoSignatrueCast()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dkprim.cc238 py::function fn = prim->cast<PrimitivePyPtr>()->GetBpropFunction(); in ExportBpropMindir()
281 fn = prim->cast<PrimitivePyPtr>()->GetBpropFunction(); in GetBprop()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Ddo_signature.cc40 return function->cast<PrimitivePyPtr>()->signatures(); in GetSignature()
/third_party/mindspore/tests/ut/cpp/operator/
Dops_test.cc425 PrimitivePyPtr conv2d_ptr = dyn_cast<PrimitivePy>(conv2d_prim); in TEST_F()
/third_party/mindspore/tests/ut/cpp/parallel/
Dstep_parallel_test.cc287 PrimitivePyPtr allreduce_ptr = dyn_cast<PrimitivePy>(op_instance); in TEST_F()
/third_party/mindspore/tests/ut/cpp/optimizer/
Dlib_test.cc178 auto cast_py = cast_node->cast<ValueNodePtr>()->value()->cast<PrimitivePyPtr>(); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dpipeline.cc587 auto quant_op = quant_op_value->cast<PrimitivePyPtr>(); in GetWeightInfo()