Home
last modified time | relevance | path

Searched refs:CNode (Results 1 – 25 of 249) sorted by relevance

12345678910

/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Danf_py.cc23 REGISTER_PYBIND_DEFINE(CNode, ([](const pybind11::module *m) { in __anon4fc9756a0102()
24 (void)py::class_<CNode, CNodePtr>(*m, "CNode") in __anon4fc9756a0102()
25 … .def("expanded_str", (std::string(CNode::*)(int32_t) const) & CNode::DebugString, in __anon4fc9756a0102()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dclip_by_value_fusion.cc35 if (input0->isa<CNode>() && !input1->isa<CNode>()) { in GetMinimumOp()
38 } else if (!input0->isa<CNode>() && input1->isa<CNode>()) { in GetMinimumOp()
41 } else if (input0->isa<CNode>() && input1->isa<CNode>()) { in GetMinimumOp()
/third_party/mindspore/mindspore/core/ir/
Danf_extends.cc38 std::string CNode::fullname_with_scope() { in fullname_with_scope()
66 fullname_with_scope_ = id_generator::get_id(shared_from_base<CNode>()); in fullname_with_scope()
72 fullname_with_scope_ = id_generator::get_id(shared_from_base<CNode>()); in fullname_with_scope()
92 fullname_with_scope_ += "-op" + id_generator::get_id(shared_from_base<CNode>()); in fullname_with_scope()
96 void CNode::accept(AnfIrVisitor *v) { v->Visit(shared_from_base<CNode>()); } in accept()
Danf.cc34 CNode::CNode(const std::vector<AnfNodePtr> &inputs, const FuncGraphPtr &func_graph) in CNode() function in mindspore::CNode
45 bool CNode::IsApply(const PrimitivePtr &value) const { in IsApply()
60 void CNode::add_input(const AnfNodePtr &input) { in add_input()
65 void CNode::set_input(size_t i, const AnfNodePtr &new_input) { in set_input()
73 void CNode::set_inputs(const std::vector<AnfNodePtr> &inputs) { in set_inputs()
78 const AnfNodePtr &CNode::input(size_t i) const { in input()
85 std::string CNode::DebugString(int recursive_level) const { in DebugString()
162 auto cnode = dyn_cast<CNode>(node); in IsPrimitiveCNode()
174 auto cnode = dyn_cast<CNode>(node); in GetCNodePrimitive()
202 auto cnode = dyn_cast<CNode>(node); in GetCNodeFuncGraph()
[all …]
Dgraph_utils.cc116 if (item->isa<CNode>()) { in BroadFirstSearchGraphCNodes()
142 if (item->isa<CNode>()) { in BroadFirstSearchFirstOf()
201 if (node->isa<CNode>()) { in SuccDeeper()
224 if (node->isa<CNode>()) { in SuccDeeperSimple()
233 auto cnode = dyn_cast<CNode>(node); in SuccIncoming()
245 if (node->isa<CNode>()) { in SuccIncludeFV()
266 auto cnode = dyn_cast<CNode>(node); in GetInputs()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/
Dbn_grad_split_test.cc58 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
61 EXPECT_TRUE(make_tuple1->input(1)->isa<CNode>()); in TEST_F()
64 EXPECT_TRUE(make_tuple2->input(1)->isa<CNode>()); in TEST_F()
67 EXPECT_TRUE(tuple_getitem->input(1)->isa<CNode>()); in TEST_F()
124 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
127 EXPECT_TRUE(make_tuple1->input(1)->isa<CNode>()); in TEST_F()
130 EXPECT_TRUE(make_tuple2->input(1)->isa<CNode>()); in TEST_F()
133 EXPECT_TRUE(tuple_getitem->input(1)->isa<CNode>()); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dirpass.h185 return node->isa<CNode>(); in IsCNode()
205 if (node == nullptr || !node->isa<CNode>()) { in IsLoad()
213 if (node == nullptr || !node->isa<CNode>()) { in IsCNodeGraph()
223 if (node == nullptr || !node->isa<CNode>()) { in IsCNodeDup()
228 return (inp0 != nullptr) && inp0->isa<CNode>(); in IsCNodeDup()
234 if (node->isa<CNode>()) { in IsCNodeSwitch()
/third_party/mindspore/tests/ut/cpp/ir/
Danf_test.cc61 CNode app_1(params, fg); in TEST_F()
64 CNode app(params, fg); in TEST_F()
65 assert(app.isa<CNode>()); in TEST_F()
72 assert(!a.isa<CNode>()); in TEST_F()
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/format_type/
Dmerge_cast_to_op_test.cc89 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
92 EXPECT_TRUE(make_tuple->input(1)->isa<CNode>()); in TEST_F()
105 EXPECT_TRUE(four2five->input(1)->isa<CNode>()); in TEST_F()
151 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
154 EXPECT_TRUE(make_tuple->input(1)->isa<CNode>()); in TEST_F()
168 EXPECT_TRUE(cast->input(1)->isa<CNode>()); in TEST_F()
Dcheck_consistency_test.cc62 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
75 EXPECT_TRUE(make_tuple->input(1)->isa<CNode>()); in TEST_F()
123 EXPECT_TRUE(ret->input(1)->isa<CNode>()); in TEST_F()
136 EXPECT_TRUE(make_tuple->input(1)->isa<CNode>()); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Dcommon_subexpression_elimination.cc48 if (input != nullptr && input->isa<CNode>()) { in CheckIgnoreCase()
60 if (main->isa<CNode>()) { in CheckEqualKernelBuildInfo()
115 } else if (main->isa<CNode>() && node->isa<CNode>()) { in CheckReplace()
Doptimize_dependence.cc64 if (!real_input_op->isa<CNode>()) { in CheckIsolatedVirtualNode()
87 if (!node->isa<CNode>()) { in GetReplaceNode()
181 auto cnode = dyn_cast<CNode>(node); in Process()
220 if (!replacing_node->isa<CNode>()) { in GetConvertNode()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/
Ddepthwiseconv_eltwise_fusion_pass.cc35 if (cnode->isa<CNode>() && IsPrimitiveCNode(depthwise_conv, prim::kPrimDepthwiseConv2dNative)) { in MatchDepthwiseConvRelu()
44 …if (cnode->isa<CNode>() && (IsPrimitiveCNode(relu, prim::kPrimRelu) || IsPrimitiveCNode(relu, prim… in MatchDepthwiseConvRelu()
66 …if (eltwise_input->isa<CNode>() && AnfAlgo::CheckPrimitiveType(eltwise_input, prim::kPrimDepthwise… in MatchSingleFusionPattern()
Dbnupdate_eltwise_eltwise_fusion_pass.cc41 …if (tuple_getitem->isa<CNode>() && AnfAlgo::GetCNodeName(tuple_getitem) == prim::kPrimTupleGetItem… in MatchBnupdateAddRelu()
46 if (bnupdate->isa<CNode>() && AnfAlgo::GetCNodeName(bnupdate) == kBNTrainingUpdateOpName && in MatchBnupdateAddRelu()
74 … if (eltwise_input->isa<CNode>() && AnfAlgo::CheckPrimitiveType(eltwise_input, prim::kPrimAdd)) { in MatchSingleFusionPattern()
Dfusion_base_pass.cc27 …if (!node->isa<CNode>() || !AnfAlgo::IsRealCNodeKernel(node) || fusion_id_allocator->HasFusionIdAt… in CheckEltWiseNode()
42 …if (!node->isa<CNode>() || !AnfAlgo::IsRealCNodeKernel(node) || fusion_id_allocator->HasFusionIdAt… in CheckDoubleInEltWiseNode()
57 …if (!node->isa<CNode>() || !AnfAlgo::IsRealCNodeKernel(node) || fusion_id_allocator->HasFusionIdAt… in CheckMultiOutputEltWiseNode()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dincorporate_call.h83 if (!node->isa<CNode>() || node->func_graph() == nullptr) { in operator()
88 if (inputs[0] == nullptr || !inputs[0]->isa<CNode>()) { in operator()
160 if (!node->isa<CNode>() || node->func_graph() == nullptr) { in operator()
166 if (inputs[0] == nullptr || !inputs[0]->isa<CNode>()) { in operator()
172 if (inputs_x[0] == nullptr || !inputs_x[0]->isa<CNode>()) { in operator()
Drecompute_prepare.h44 if (output->isa<CNode>()) { in operator()
59 if (!output->isa<CNode>()) { in GetRealOutputNodes()
/third_party/mindspore/mindspore/ccsrc/debug/rdr/
Dgraph_exec_order_recorder.h25 class CNode; variable
26 using CNodePtr = std::shared_ptr<CNode>;
/third_party/mindspore/mindspore/ccsrc/vm/
Dgraph_partition.cc46 if (!node->isa<CNode>()) { in GetOtherTarget()
67 if (!node->isa<CNode>()) { in CalcNodeRefCount()
117 …_prim == prim::kPrimDepend && inputs.size() == depend_input_size + 1 && !inputs[1]->isa<CNode>()) { in ReorderVirtualNode()
191 if (!node->isa<CNode>()) { in SplitSort()
204 if (!input->isa<CNode>()) { in SplitSort()
239 if (node == nullptr || !node->isa<CNode>()) { in GetNodesDependencyInfo()
248 if (input->isa<CNode>()) { in GetNodesDependencyInfo()
421 if (!node->isa<CNode>()) { in AddSegmentDependency()
433 …if (node_segment != nullptr && !node_segment->is_cut_ && input != nullptr && input->isa<CNode>()) { in AddSegmentDependency()
482 if (node->isa<CNode>()) { in IsSubGraph()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dvisit.cc94 if (node->isa<CNode>()) { in Visit()
155 new_cnode = std::make_shared<CNode>(new_inputs, utils::cast<FuncGraphPtr>(any_fg)); in Visit()
160 new_cnode = std::make_shared<CNode>(new_inputs, utils::cast<VarPtr>(any_fg)); in Visit()
162 new_cnode = std::make_shared<CNode>(new_inputs, utils::cast<FuncGraphPtr>(any_fg)); in Visit()
Dnode_pass.cc37 auto partial_node = dyn_cast<CNode>(inputs.at(kSwitchBranchIndex)); in AddOutputAndCallerToMap()
83 if (kernel_graph != nullptr && node->isa<CNode>()) { in Run()
101 } else if (new_node && new_node->isa<CNode>()) { in Run()
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/
Dallreduce_fusion_test.cc65 …if ((node->isa<CNode>() && AnfAlgo::GetCNodeName(node) == kAllReduceOpName) || node->isa<Parameter… in TEST_F()
106 …if ((node->isa<CNode>() && AnfAlgo::GetCNodeName(node) == kAllReduceOpName) || node->isa<Parameter… in TEST_F()
148 …if ((node->isa<CNode>() && AnfAlgo::GetCNodeName(node) == kAllReduceOpName) || node->isa<Parameter… in TEST_F()
152 if (node->isa<CNode>() && AnfAlgo::GetCNodeName(node) == kAllReduceOpName) { in TEST_F()
204 …if ((node->isa<CNode>() && AnfAlgo::GetCNodeName(node) == kAllReduceOpName) || node->isa<Parameter… in TEST_F()
/third_party/mindspore/mindspore/lite/schema/
Dmodel_v0.fbs24 CNode // op
275 table CNode {
277 nodeType: NodeType = CNode;
299 nodes: [CNode];
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/enhancer/
Dinsert_tensor_move_for_hccl_op.cc124 if (input->isa<CNode>() && AnfAlgo::IsNodeDynamicShape(input)) { in InsertTensorMove()
135 CNodePtr new_hccl_node = std::make_shared<CNode>(*hccl_node); in InsertTensorMove()
151 if (func_graph == nullptr || node == nullptr || !node->isa<CNode>()) { in Process()
/third_party/mindspore/mindspore/lite/test/ut/tools/converter/registry/
Dpass_registry_test.cc103 if (!utils::isa<CNode>(node)) { in Execute()
113 if (!utils::isa<CNode>(input_node)) { in Execute()
171 if (!utils::isa<CNode>(node)) { in Execute()
213 if (node->isa<CNode>()) { in TEST_F()

12345678910