Searched refs:old_cnode (Results 1 – 6 of 6) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/ |
D | partial_eliminate.h | 346 …AnfNodePtr BuildNewSwitchNode(const CNodePtr &old_cnode, const CNodePtr input0_cnode, const AnfNod… in BuildNewSwitchNode() argument 351 …auto switch_cnode = old_cnode->func_graph()->NewCNode({input0_cnode->input(0), input0_cnode->input… in BuildNewSwitchNode() 356 if (old_cnode->size() >= 2) { in BuildNewSwitchNode() 357 …(void)std::copy(old_cnode->inputs().begin() + 1, old_cnode->inputs().end(), std::back_inserter(arg… in BuildNewSwitchNode() 359 TraceGuard guard2(std::make_shared<TraceCopy>(old_cnode->debug_info())); in BuildNewSwitchNode() 360 auto new_node = old_cnode->func_graph()->NewCNode(args); in BuildNewSwitchNode() 361 new_node->set_abstract(old_cnode->abstract()); in BuildNewSwitchNode() 428 AnfNodePtr BuildNewSwitchLayerNode(const CNodePtr &old_cnode, const CNodePtr switch_layer_cnode, in BuildNewSwitchLayerNode() argument 435 auto new_make_tuple_cnode = old_cnode->func_graph()->NewCNode(make_tuple_args); in BuildNewSwitchLayerNode() 439 auto new_switch_layer_cnode = old_cnode->func_graph()->NewCNode( in BuildNewSwitchLayerNode() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | decrease_compute_precision.cc | 165 …auto add_cast = [&func_graph](const CNodePtr &old_cnode, bool is_output, std::vector<AnfNodePtr> &… in Process() argument 166 AnfNodePtrList inputs1 = {NewValueNode(prim::kPrimCast), old_cnode}; in Process() 169 ShapeVector cast_shape = GetShape(old_cnode); in Process() 173 cnode1->set_scope(old_cnode->scope()); in Process() 177 std::vector<std::string> cnode_input_format = {GetFormat(old_cnode)}; in Process() 179 std::vector<std::string> cnode_output_format = {GetFormat(old_cnode)}; in Process()
|
D | eliminate_redundant_output.cc | 258 auto old_cnode = node->cast<CNodePtr>(); in ReplaceMakeTuple() local 259 MS_EXCEPTION_IF_NULL(old_cnode); in ReplaceMakeTuple() 260 AnfNodePtrList inputs(old_cnode->inputs().begin() + 1, old_cnode->inputs().end()); in ReplaceMakeTuple()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/ |
D | static_analysis.cc | 560 auto old_cnode = orig_conf->node()->cast<CNodePtr>(); in ForwardConfig() local 561 MS_EXCEPTION_IF_NULL(old_cnode); in ForwardConfig() 565 MS_EXCEPTION_IF_NULL(old_cnode->func_graph()); in ForwardConfig() 566 if (old_cnode->func_graph() == new_cnode->func_graph()) { in ForwardConfig() 568 … << ", as origin node should be in order list, origin_node: " << old_cnode->ToString(); in ForwardConfig() 569 old_cnode->func_graph()->EraseUnusedNodeInOrder(new_cnode); in ForwardConfig() 571 …MS_LOG(EXCEPTION) << "Forward orig_node to different func_graph, old_node: " << old_cnode->DebugSt… in ForwardConfig()
|
/third_party/mindspore/mindspore/core/ir/ |
D | func_graph.cc | 686 auto old_cnode = old_node->cast<CNodePtr>(); in ReplaceInOrder() local 687 if (old_cnode == nullptr) { in ReplaceInOrder() 692 auto iter = order_.find(old_cnode); in ReplaceInOrder()
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | quantize_util.cc | 600 auto old_cnode = old_cnode_iter->second; in CopyFuncGraph() local
|