Home
last modified time | relevance | path

Searched refs:kActivationType (Results 1 – 25 of 30) sorted by relevance

12

/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dconv_activation_fusion.cc49 …(act_prim->GetAttr(ops::kActivationType) != nullptr && act_prim->get_activation_type() != mindspor… in Process()
67 if (prim->GetAttr(ops::kActivationType) == nullptr || in Process()
68 … static_cast<mindspore::ActivationType>(GetValue<int64_t>(prim->GetAttr(ops::kActivationType))) == in Process()
71 prim->AddAttr(ops::kActivationType, MakeValue<int64_t>(type)); in Process()
Dconv_tuple_activation_fusion.cc55 if (act_prim->GetAttr(ops::kActivationType) == nullptr || in Process()
78 …if (primc->GetAttr(ops::kActivationType) == nullptr || primc->get_activation_type() == mindspore::… in Process()
Dtf_gelu_fusion.cc42 return act_prim->GetAttr(ops::kActivationType) != nullptr && in CheckTanh()
43 GetValue<int64_t>(act_prim->GetAttr(ops::kActivationType)) == mindspore::TANH; in CheckTanh()
Dsigmoid_mul_fusion.cc55 if (activation_prim == nullptr || (activation_prim->GetAttr(ops::kActivationType) != nullptr && in Process()
Dconv_biasadd_fusion.cc107 auto add_act_ptr = prim_add->GetAttr(ops::kActivationType); in CheckCanFusion()
125 auto conv_act_ptr = prim_add->GetAttr(ops::kActivationType); in CheckCanFusion()
/third_party/mindspore/mindspore/core/ops/fusion/
Ddiv_fusion.cc27 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
31 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dmul_fusion.cc28 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
31 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dsub_fusion.cc27 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
31 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dscale_fusion.cc31 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
35 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dl2_normalize_fusion.cc32 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
36 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dadder_fusion.cc40 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
44 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dconv2d_backprop_filter_fusion.cc46 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
54 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dactivation.cc34 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
53 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dadd_fusion.cc30 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
33 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dconv2d_backprop_input_fusion.cc50 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
59 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dconv2d_fusion.cc47 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
60 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dconv2d_transpose_fusion.cc71 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
81 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dfull_connection.cc47 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
50 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Davg_pool_fusion.cc38 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
48 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dmax_pool_fusion.cc38 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
48 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
/third_party/mindspore/mindspore/core/ops/grad/
Dactivation_grad.cc36 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
40 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dde_conv2d_grad_filter.cc134 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
138 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
Dgroup_conv2d_grad_input.cc145 (void)this->AddAttr(kActivationType, MakeValue(swi)); in set_activation_type()
149 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
/third_party/mindspore/mindspore/core/ops/
Daffine.cc40 (void)this->AddAttr(kActivationType, MakeValue(static_cast<int64_t>(activation_type))); in set_activation_type()
64 auto value_ptr = GetAttr(kActivationType); in get_activation_type()
/third_party/mindspore/mindspore/lite/test/ut/tools/converter/registry/
Dpass_registry_test.cc66 …if (primc->GetAttr(ops::kActivationType) != nullptr && primc->get_activation_type() != mindspore::… in CanFusion()
83 if (add_primc->GetAttr(ops::kActivationType) != nullptr && in CanFusion()

12