/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/ |
D | order_enforce.cc | 83 auto side_effect_nodes = FindNodeUsers(prev_u, [&update_state](const AnfNodePtr &user_node) { in HandleUpdateState() argument 84 return (user_node != update_state) && !IsPrimitiveCNode(user_node, prim::kPrimLoad); in HandleUpdateState() 107 auto &user_node = user.first; in FindUpdateStateUsers() local 108 if (IsPrimitiveCNode(user_node, prim::kPrimUpdateState)) { in FindUpdateStateUsers() 109 (void)update_states.emplace_back(user_node); in FindUpdateStateUsers() 112 if (IsPrimitiveCNode(user_node, prim::kPrimMakeTuple)) { in FindUpdateStateUsers() 113 auto make_tuple_users = FindUpdateStateUsers(user_node); in FindUpdateStateUsers() 170 auto maketuple_users = FindNodeUsers(maketuple, [](const AnfNodePtr &user_node) { in HandleMakeTupleUsers() argument 174 return !IsPrimitiveCNode(user_node, prim::kPrimPush); in HandleMakeTupleUsers() 320 auto &user_node = user.first; in FindNodeUsers() local [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | raise_reduction_precision.cc | 67 auto user_node = user.first; in ReplaceNode() local 69 if (IsPrimitiveCNode(user_node, prim::kPrimCast) && in ReplaceNode() 70 AnfAlgo::GetOutputDeviceDataType(user_node, 0) == kNumberTypeFloat32) { in ReplaceNode() 71 if (!(mng->Replace(user_node, reduce_node))) { in ReplaceNode() 75 if (user_node->isa<CNode>()) { in ReplaceNode() 76 user_node->cast<CNodePtr>()->set_input(user_index, cast_node); in ReplaceNode()
|
D | shape_ops_splitter.cc | 67 auto user_node = user->cast<CNodePtr>(); in SplitNode() local 68 MS_EXCEPTION_IF_NULL(user_node); in SplitNode() 70 user_node->set_input(IntToSize(index), split_nodes[i]); in SplitNode()
|
D | add_atomic_clean.cc | 370 … const AnfNodePtr &composite_node, const AnfNodePtr &user_node, int index) const { in AddDepend() argument 377 auto user_cnode = user_node->cast<CNodePtr>(); in AddDepend() 459 const auto &user_node = node_index.first; in FindOriginCNodeUsers() local 460 if (!IsPrimitiveCNode(user_node, prim::kPrimTupleGetItem)) { in FindOriginCNodeUsers() 463 auto get_item_cnode = user_node->cast<CNodePtr>(); in FindOriginCNodeUsers() 509 for (const auto &[user_node, index] : reduce_user_nodes) { in ProcessOriginCNodeUser() 516 auto user_cnode = user_node->cast<CNodePtr>(); in ProcessOriginCNodeUser()
|
D | decrease_transfer_precision.cc | 257 auto user_node = user.first; in Process_Son() local 258 if (IsPrimitiveCNode(user_node, prim::kPrimCast) && in Process_Son() 259 AnfAlgo::GetOutputDeviceDataType(user_node, 0) == kNumberTypeFloat16) { in Process_Son() 260 (void)mng->Replace(user_node, old_input); in Process_Son()
|
D | add_stitch_atomic_clean_gpu.cc | 70 for (const auto &[user_node, index] : reduce_user_nodes) { in ProcessOriginCNode() 71 auto user_cnode = user_node->cast<CNodePtr>(); in ProcessOriginCNode()
|
D | add_atomic_clean.h | 83 const AnfNodePtr &user_node, int index) const;
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/ |
D | prim_bprop_optimizer.cc | 94 auto user_node = user_info.first; in AnalysisNodeUsingInfo() local 96 MS_LOG(DEBUG) << "param:" << param->ToString() << " used by node:" << user_node->ToString(); in AnalysisNodeUsingInfo() 97 if (!IsPrimitiveCNode(user_node, prim::kPrimTupleGetItem)) { in AnalysisNodeUsingInfo() 102 AalysisForTupleGetItem(node_users, param, arg_info, user_node); in AnalysisNodeUsingInfo() 108 … ParamUsingInfo *arg_info, const AnfNodePtr &user_node) const { in AalysisForTupleGetItem() 110 MS_EXCEPTION_IF_NULL(user_node); in AalysisForTupleGetItem() 111 auto cnode = user_node->cast<CNodePtr>(); in AalysisForTupleGetItem() 116 …MS_LOG(EXCEPTION) << "TupleGetItem Node:" << user_node->ToString() << " of bp_graph:" << opt_func_… in AalysisForTupleGetItem() 122 << " unexpected used by node:" << user_node->ToString() in AalysisForTupleGetItem() 130 << " unexpected used by node:" << user_node->ToString() in AalysisForTupleGetItem()
|
D | prim_bprop_optimizer.h | 120 ParamUsingInfo *arg_info, const AnfNodePtr &user_node) const;
|
D | dfunctor.cc | 881 auto &user_node = user.first; in RemovePrimalUpdateStates() local 882 if (IsPrimitiveCNode(user_node, prim::kPrimUpdateState)) { in RemovePrimalUpdateStates() 883 update_states.emplace_back(user_node->cast<CNodePtr>()); in RemovePrimalUpdateStates()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/pipeline_transformer/ |
D | pipeline_transformer.cc | 216 auto user_node = user_pair.first->cast<CNodePtr>(); in Coloring() local 217 user_node->set_stage(graph->stage()); in Coloring() 218 auto user_node_graph = user_node->func_graph(); in Coloring() 246 auto user_node = user_pair.first->cast<CNodePtr>(); in BroadCastColoring() local 247 auto user_node_stage = user_node->stage(); in BroadCastColoring() 249 if (IsValueNode<FuncGraph>(user_node->input(0))) { in BroadCastColoring() 253 user_node->set_stage(stage); in BroadCastColoring() 391 auto user_node = user_pair.first->cast<CNodePtr>(); in GetParameterPair() local 392 MS_EXCEPTION_IF_NULL(user_node); in GetParameterPair() 393 auto user_node_graph = user_node->func_graph(); in GetParameterPair() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ |
D | fusion_base_pass.cc | 75 auto user_node = user.first; in GetNotUpdateStateUserNums() local 76 if (!AnfAlgo::CheckPrimitiveType(user_node, prim::kPrimUpdateState)) { in GetNotUpdateStateUserNums()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/ |
D | pipeline_split_utils.cc | 419 auto user_node = node_pair.first->cast<CNodePtr>(); in BroadCastMicroBatch() local 420 if (user_node->HasPrimalAttr(MICRO)) { in BroadCastMicroBatch() 423 user_node->AddPrimalAttr(MICRO, value); in BroadCastMicroBatch() 424 BroadCastMicroBatch(user_node, node_users_map, value, max_depth + 1); in BroadCastMicroBatch() 531 auto user_node = node_pair.first->cast<CNodePtr>(); in Micro() local 532 auto micro = Micro(user_node, node_users_map, max_depth + 1); in Micro()
|
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/ |
D | convert.cc | 1096 auto user_node = iter.first; in AddEdgeForLoad() local 1097 auto name = GetCNodeTargetFuncName(user_node->cast<CNodePtr>()); in AddEdgeForLoad() 1099 FindDestOps(user_node, dst_node_list, false); in AddEdgeForLoad() 1102 if (IsControlEdgeNode(user_node)) { in AddEdgeForLoad() 1103 src_node_list->push_back(user_node); in AddEdgeForLoad() 1106 FindDestOps(user_node, src_node_list, false); in AddEdgeForLoad() 1132 auto user_node = iter.first; in FindDestOps() local 1133 if (IsControlEdgeNode(user_node)) { in FindDestOps() 1135 node_list->push_back(user_node); in FindDestOps() 1138 FindDestOps(user_node, node_list, false); in FindDestOps()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/ |
D | cache_embedding.cc | 599 for (auto user_node : user_set) { in ReplaceNoRefToParams() local 600 CreateControlDepend(graph, user_node.first, assign_status); in ReplaceNoRefToParams() 610 for (auto &user_node : indices_user_set) { in ReplaceNoRefToParams() local 611 CreateControlDepend(graph, user_node.first, dynamic_assgin_status); in ReplaceNoRefToParams()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_build_ast.h | 175 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context); 231 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
|
D | cil_resolve_ast.c | 860 struct cil_tree_node *user_node = NULL; in cil_resolve_userlevel() local 868 user_node = NODE(user_datum); in cil_resolve_userlevel() 870 if (user_node->flavor != CIL_USER) { in cil_resolve_userlevel() 913 struct cil_tree_node *user_node = NULL; in cil_resolve_userrange() local 921 user_node = NODE(user_datum); in cil_resolve_userrange() 923 if (user_node->flavor != CIL_USER) { in cil_resolve_userrange() 964 struct cil_tree_node *user_node = NULL; in cil_resolve_userprefix() local 972 user_node = NODE(user_datum); in cil_resolve_userprefix() 974 if (user_node->flavor != CIL_USER) { in cil_resolve_userprefix() 991 struct cil_tree_node *user_node = NULL; in cil_resolve_selinuxuser() local [all …]
|
D | cil_build_ast.c | 4099 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context) in cil_fill_context() argument 4111 if (user_node == NULL || context == NULL) { in cil_fill_context() 4115 rc = __cil_verify_syntax(user_node, syntax, syntax_len); in cil_fill_context() 4120 context->user_str = user_node->data; in cil_fill_context() 4121 context->role_str = user_node->next->data; in cil_fill_context() 4122 context->type_str = user_node->next->next->data; in cil_fill_context() 4126 if (user_node->next->next->next->cl_head == NULL) { in cil_fill_context() 4127 context->range_str = user_node->next->next->next->data; in cil_fill_context() 4131 rc = cil_fill_levelrange(user_node->next->next->next->cl_head, context->range); in cil_fill_context()
|
D | cil_post.c | 1741 struct cil_tree_node *user_node = NULL; in __cil_post_db_userrole_helper() local 1763 user_node = user_datum->nodes->head->data; in __cil_post_db_userrole_helper() 1765 if (user_node->flavor == CIL_USERATTRIBUTE) { in __cil_post_db_userrole_helper()
|