Home
last modified time | relevance | path

Searched refs:kPrimTranspose (Results 1 – 25 of 43) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dremove_format_transform_pair.cc31 VectorRef transpose1 = VectorRef({prim::kPrimTranspose, X}); in DefinePattern()
32 VectorRef transpose2 = VectorRef({prim::kPrimTranspose, transpose1}); in DefinePattern()
43 if (AnfAlgo::GetCNodeName(node) != prim::kPrimTranspose->name() || in Process()
44 AnfAlgo::GetCNodeName(input_node) != prim::kPrimTranspose->name()) { in Process()
Dremove_redundant_format_transform.cc30 VectorRef transpose = VectorRef({prim::kPrimTranspose, X}); in DefinePattern()
46 if (AnfAlgo::GetCNodeName(used_node) == prim::kPrimTranspose->name()) { in Process()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dtranspose_fusion.cc37 auto is_transpose = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineBNPattern()
57 auto is_transpose = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineActivationscalePattern()
75 auto is_transpose = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineActivationPattern()
89 auto is_transpose = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineBiasAddPattern()
105 auto is_transpose1 = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineTransTransPattern()
107 auto is_transpose2 = std::make_shared<CondVar>(IsSpecifiedNode<&prim::kPrimTranspose>); in DefineTransTransPattern()
148 if (!CheckPrimitiveType(trans_cnode_2, prim::kPrimTranspose) || in TransTransFusion()
149 !CheckPrimitiveType(trans_cnode_2->input(1), prim::kPrimTranspose)) { in TransTransFusion()
Dmulti_head_attention_fusion.cc38 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineEmbedding()
90 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineMPWithMaskPattern()
107 auto is_tranpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineDensePattern()
142 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineProcessInputPattern()
151 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineProcessOutputPattern()
Dtflite_rel_pos_multi_head_attention_fusion.cc86 auto is_transpose1 = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefinePatterns()
101 auto is_transpose2 = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefinePatterns()
109 auto is_transpose3 = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefinePatterns()
411 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineProcessInputPattern()
423 auto is_transpose = std::make_shared<CondVar>(std::bind(IsOpType, p1, prim::kPrimTranspose)); in DefineProcessOutputPattern()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dunused_transpose_node_remove_pass.cc34 if (!CheckPrimitiveType(node, prim::kPrimTranspose)) { in GetTransposePerm()
74 if (CheckPrimitiveType(node, prim::kPrimTranspose)) { in Run()
91 if (!CheckPrimitiveType(conv_node->input(kTransposeInput), prim::kPrimTranspose)) { in Run()
Dredundant_op_remove_pass.cc35 if (CheckPrimitiveType(first_input, prim::kPrimTranspose)) { in ProcessInputIsMonad()
41 if (CheckPrimitiveType(second_input, prim::kPrimTranspose)) { in ProcessInputIsMonad()
86 if (CheckPrimitiveType(pre_node, prim::kPrimTranspose)) { in ProcessDependencyWithTwoNodes()
90 if (CheckPrimitiveType(post_node, prim::kPrimTranspose)) { in ProcessDependencyWithTwoNodes()
127 if (CheckPrimitiveType(cnode->input(0), prim::kPrimTranspose)) { in ProcessInputHaveDependency()
159 if (CheckPrimitiveType(anf_node, prim::kPrimTranspose)) { in ReplaceOp()
389 if (CheckPrimitiveType(node, prim::kPrimTranspose)) { in Run()
Ddecrease_transpose_algo.cc45 if (CheckPrimitiveType(cur_node, prim::kPrimTranspose)) { in FindAreaSurroundedByTranspose()
107 …if (!CheckPrimitiveType(cnode, prim::kPrimTranspose) || GetTransposePerm(cnode, &perm) != lite::RE… in SetTransType()
207 if (!CheckPrimitiveType(cnode, prim::kPrimTranspose)) { in PostTransposeFusion()
218 if (CheckPrimitiveType(post_node, prim::kPrimTranspose)) { in PostTransposeFusion()
249 if (CheckPrimitiveType(new_cnode_input, prim::kPrimTranspose)) { in GenNewInput()
421 if (CheckPrimitiveType(in_cnode, prim::kPrimTranspose)) { in HandleGraphMultiNode()
557 if (!CheckPrimitiveType(return_node->input(i), prim::kPrimTranspose)) { in SetSubGraphOutput()
756 …if (!CheckPrimitiveType(cnode, prim::kPrimTranspose) || GetTransposePerm(cnode, &perm) != lite::RE… in DecreaseTransposeForMultiOp()
Dinfershape_pass.cc56 if (CheckPrimitiveType(real_cnode, prim::kPrimTranspose)) { in GetCNodeCertainInputFormat()
308 if (!opt::CheckPrimitiveType(return_node->input(i), prim::kPrimTranspose)) { in SetSubGraphOutput()
/third_party/mindspore/mindspore/lite/tools/optimizer/format/
Ddelete_redundant_transpose.cc56 if (!CheckPrimitiveType(node, prim::kPrimTranspose)) { in DeleteNot4DTranspose()
117 if (!CheckPrimitiveType(cnode, prim::kPrimTranspose) || in TransTransFusion()
118 !CheckPrimitiveType(cnode->input(1), prim::kPrimTranspose)) { in TransTransFusion()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dtransdata_split.cc81 … prim::kPrimTranspose->name(), std::vector<int64_t>{3, 2, 0, 1}); in DoSplit()
87 … false, prim::kPrimTranspose->name(), std::vector<int64_t>{2, 3, 1, 0}); in DoSplit()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dparameter_and_transop_fusion.cc41 if (op_name == prim::kPrimCast->name() || op_name == prim::kPrimTranspose->name() || in ParamTransRoad()
97 if (node_name == prim::kPrimCast->name() || node_name == prim::kPrimTranspose->name() || in Run()
Dtranspose_transdata_fusion.cc27 VectorRef transpose({prim::kPrimTranspose, input_varptr_}); in DefinePattern()
Dreshape_transpose_fusion.cc46 return VectorRef({prim::kPrimTranspose, reshape}); in DefinePattern()
Dtranspose_reshape_fusion.cc43 VectorRef transpose({prim::kPrimTranspose, input_varptr_}); in DefinePattern()
Dtransposed_update_fusion.cc68 return VectorRef({prim::kPrimTranspose, X}); in DefinePattern()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dtranspose_eliminate.h37 AnfVisitor::Match(prim::kPrimTranspose, {IsNode, IsVNode})(node); in operator()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/
Dinsert_transpose_for_dynamic_gru_v2.cc60 prim::kPrimTranspose->name(), std::vector<int64_t>{2, 3, 1, 0}); in Insert()
Dinsert_transpose_for_basiclstm_op.cc42 auto prim = std::make_shared<Primitive>(prim::kPrimTranspose->name()); in Insert()
/third_party/mindspore/mindspore/core/abstract/
Dprimitive_infer_map.cc45 const auto kTranspose = prim::kPrimTranspose->name(); in GetDependsFormMap()
245 {prim::kPrimTranspose, {InferImplTranspose, nullptr, true}}, in GetPrimitiveToBackendEvalImplMap()
/third_party/mindspore/mindspore/core/ops/
Dtranspose.cc99 REGISTER_PRIMITIVE_EVAL_IMPL(Transpose, prim::kPrimTranspose, TransposeInfer, nullptr, true);
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dconst_input_to_attr_registry.cc47 Register(prim::kPrimTranspose->name(), {1}); in ConstInputToAttrInfoRegistry()
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Dtransformation_ops_declare.cc48 REG_ADPT_DESC(TransposeD, prim::kPrimTranspose->name(), ADPT_DESC(TransposeD))
/third_party/mindspore/mindspore/lite/tools/converter/parser/
Dtf_bidirection_gru_cf_fusion.cc170 auto fw_out_trans = VectorRef({GetPrim(prim::kPrimTranspose), tensor_array_gather, concat2}); in DefineBidirectionRnnPattern()
185 auto bw_transpose = VectorRef({GetPrim(prim::kPrimTranspose), bw_reverse_in, bw_concat}); in DefinePattern()
Dinputs_adjust.cc113 if (opt::CheckPrimitiveType(node, prim::kPrimTranspose)) { in Run()

12