/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/ |
D | batch_norm_relu_grad_fusion.cc | 63 auto relu_grad = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 72 auto dy = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(relu_grad), 0); in Process() 74 auto y = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(relu_grad), 1); in Process() 76 auto x = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 1); in Process() 78 auto scale = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 2); in Process() 80 auto save_mean = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 3); in Process() 82 auto save_var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 4); in Process() 84 auto reserve = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 5); in Process() 86 auto batch_norm = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(save_mean), 0); in Process() 88 auto bias = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 2); in Process()
|
D | batch_norm_add_relu_fusion.cc | 43 auto tensor_add = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 45 auto tuple_get_item = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tensor_add), 0); in Process() 47 auto batch_norm = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tuple_get_item), 0); in Process() 65 auto x = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 0); in Process() 66 auto scale = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 1); in Process() 67 auto bias = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 2); in Process() 68 auto mean = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 3); in Process() 69 auto var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 4); in Process() 70 auto z = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tensor_add), 1); in Process()
|
D | post_batch_norm_add_relu_fusion.cc | 43 auto tensor_add = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 45 auto tuple_get_item = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tensor_add), 1); in Process() 47 auto batch_norm = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tuple_get_item), 0); in Process() 65 auto x = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 0); in Process() 66 auto scale = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 1); in Process() 67 auto bias = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 2); in Process() 68 auto mean = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 3); in Process() 69 auto var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 4); in Process() 70 auto z = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tensor_add), 0); in Process()
|
D | batch_norm_add_relu_grad_fusion.cc | 129 auto relu_grad = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in PatternCheck() 137 auto tuple_getitem = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 5); in PatternCheck() 142 auto forward_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tuple_getitem), 0); in PatternCheck() 167 auto relu_grad = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 169 auto dy = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(relu_grad), 0); in Process() 171 auto y = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(relu_grad), 1); in Process() 173 auto x = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 1); in Process() 175 auto scale = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 2); in Process() 177 auto save_mean = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 3); in Process() 179 auto save_var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 4); in Process() [all …]
|
D | batch_norm_relu_fusion.cc | 42 auto tuple_get_item = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 44 auto batch_norm = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(tuple_get_item), 0); in Process() 62 auto x = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 0); in Process() 63 auto scale = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 1); in Process() 64 auto bias = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 2); in Process() 65 auto mean = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 3); in Process() 66 auto var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(batch_norm), 4); in Process()
|
D | remove_format_transform_pair.cc | 41 auto input_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 57 auto transpose1_input_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(input_node), 0); in Process()
|
D | replace_addn_fusion.cc | 32 auto A = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process() 33 auto B = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 1); in Process()
|
D | replace_momentum_cast_fusion.cc | 35 auto grad_cast = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), kGradIndex); in Process() 42 auto grad = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(grad_cast), 0); in Process()
|
D | combine_cast_fusion.cc | 39 auto input0 = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(cast_node), 0); in GetDealList() 41 … (AnfAlgo::GetInputNode(utils::cast<CNodePtr>(input0), 0))->isa<Parameter>())) { in GetDealList() 96 inputs.push_back(AnfAlgo::GetInputNode(cnode, 0)); in Run()
|
D | cudnn_inplace_fusion.cc | 80 const AnfNodePtr &input_node = AnfAlgo::GetInputNode(current_node, input_index); in ExistRoute() 260 *skip_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), aggregate_iter->second); in PatternMatch() 271 auto inplace_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(*skip_node), i); in PatternMatch() 282 inplace_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(inplace_node), 0); in PatternMatch()
|
D | print_reduce_fusion.cc | 71 auto current_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), i); in GetOptList() 152 auto input_tensor = AnfAlgo::GetInputNode(cnode, i); in Run() 157 auto monad_node = AnfAlgo::GetInputNode(cnode, input_flag.size()); in Run()
|
D | remove_redundant_format_transform.cc | 39 auto input_node = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 0); in Process()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/ |
D | adjust_depend_for_parallel_optimizer_recompute_all_gather.cc | 105 auto depend_node = AnfAlgo::GetInputNode(cnode, 0); in AdjustAllgatherDepend() 116 … allgather_next_node, AnfAlgo::GetInputNode(depend_cnode, 1)}; in AdjustAllgatherDepend() 119 manager->SetEdge(node, 1, AnfAlgo::GetInputNode(depend_cnode, 0)); in AdjustAllgatherDepend() 124 … IsPrimitiveCNode(AnfAlgo::GetInputNode(depend_node->cast<CNodePtr>(), 0), prim::kPrimDepend)) { in AdjustAllgatherDepend() 126 auto cast_depend_node = AnfAlgo::GetInputNode(cast_cnode, 0); in AdjustAllgatherDepend() 136 … allgather_next_node, AnfAlgo::GetInputNode(cast_depend_cnode, 1)}; in AdjustAllgatherDepend() 139 manager->SetEdge(depend_node, 1, AnfAlgo::GetInputNode(cast_depend_cnode, 0)); in AdjustAllgatherDepend()
|
D | convert_tuple_input_to_dynamic_input.cc | 46 auto dyn_input_node = AnfAlgo::GetInputNode(make_tuple, j); in SplitTupleInputs() 71 auto input_node = AnfAlgo::GetInputNode(cnode_ptr, i); in ConvertMakeTupleInputToPlantInputs()
|
D | optimize_dependence.cc | 58 auto virtual_input_op = AnfAlgo::GetInputNode(cnode, kIsolatedDependVirtualInputIndex); in CheckIsolatedVirtualNode() 62 auto real_input_op = AnfAlgo::GetInputNode(cnode, kIsolatedDependRealInputIndex); in CheckIsolatedVirtualNode() 124 auto input = AnfAlgo::GetInputNode(cnode, index); in ReplaceMakeTuple()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/ |
D | remove_reshape_pair.cc | 41 …CheckAnfNodeIfCNodeAndInputSize(AnfAlgo::GetInputNode(out_reshape, 0), kBackendReshapeInputTensorN… in Process() 53 auto input_node = AnfAlgo::GetInputNode(in_reshape, 0); in Process()
|
D | parameter_and_transop_fusion.cc | 49 auto next_node = AnfAlgo::GetInputNode(cnode, 0); in ParamTransRoad() 106 …auto final_node = ParamTransRoad(func_graph, AnfAlgo::GetInputNode(cnode, input_index), first_flag… in Run()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/enhancer/ |
D | insert_depend_for_all_gather.cc | 47 AnfAlgo::GetInputNode(next_cnode, 0), current_node}; in Run() 49 new_input->set_abstract(AnfAlgo::GetInputNode(next_cnode, 0)->abstract()); in Run()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | reorder_ops.cc | 104 auto node_input = AnfAlgo::GetInputNode(new_node, 0); in SetNodeInfo() 217 auto node_input = AnfAlgo::GetInputNode(node, 0); in ReorderTypeInsensitiveCastDown() 236 …func_graph->NewCNode({NewValueNode(prim::kPrimCast), AnfAlgo::GetInputNode(type_insens_node, index… in ReorderTypeInsensitiveCastDown() 274 auto node_input = AnfAlgo::GetInputNode(node, index); in ReorderCastUpTypeInsensitive() 280 cast_input_nodes.push_back(AnfAlgo::GetInputNode(cast_node, 0)); in ReorderCastUpTypeInsensitive()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/ |
D | insert_transpose_for_dynamic_gru_v2.cc | 52 AnfNodePtr transdata_node = AnfAlgo::GetInputNode(cnode, index); in Insert() 59 …NewTransOpNode(func_graph, AnfAlgo::GetInputNode(transdata_node->cast<CNodePtr>(), 0), kernel_sele… in Insert()
|
D | convert_cast_format.cc | 47 …auto input_node = AnfAlgo::VisitKernelWithReturnType(AnfAlgo::GetInputNode(cnode, input_index), 0)… in Process() 124 …if (AnfAlgo::VisitKernelWithReturnType(AnfAlgo::GetInputNode(cast_out_node->cast<CNodePtr>(), inde… in CalculateFormat()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/ |
D | transdata_split.cc | 76 …new_transdata_node = NewTransOpNode(func_graph, AnfAlgo::GetInputNode(node->cast<CNodePtr>(), 0), … in DoSplit() 86 …new_transpose_node = NewTransOpNode(func_graph, AnfAlgo::GetInputNode(node->cast<CNodePtr>(), 0), … in DoSplit()
|
/third_party/mindspore/mindspore/ccsrc/ps/ |
D | util.cc | 153 … AnfAlgo::GetInputNode(node->cast<CNodePtr>(), kNodeInputWeightNameOffset)->cast<ValueNodePtr>(); in DoFusion() 158 … AnfAlgo::GetInputNode(node->cast<CNodePtr>(), kNodeInputWeightIndexOffset)->cast<ValueNodePtr>(); in DoFusion() 170 fused_node_inputs.push_back(AnfAlgo::GetInputNode(node->cast<CNodePtr>(), 0)); in DoFusion()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/ |
D | graph_partitioner.cc | 140 auto input_node = AnfAlgo::GetInputNode(node->cast<CNodePtr>(), input_index); in ExistCycleAfterMerge() 164 auto input_node = AnfAlgo::GetInputNode(node->cast<CNodePtr>(), input_index); in MergeParentBranchRecursively() 193 auto input_node = AnfAlgo::GetInputNode(node->cast<CNodePtr>(), input_index); in NodeGrouping()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/cpu/ |
D | insert_cast_cpu.cc | 78 auto cur_input = AnfAlgo::GetInputNode(cnode, input_index); in InsertCast() 111 auto cur_input = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(used_node), used_node_index); in InsertCastForGraphOutput()
|