Home
last modified time | relevance | path

Searched refs:kPadMode (Results 1 – 20 of 20) sorted by relevance

/third_party/mindspore/mindspore/core/ops/
Dmax_pool.cc31 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
34 PadMode MaxPool::get_pad_mode() const { return PadMode(GetValue<int64_t>(GetAttr(kPadMode))); } in get_pad_mode()
95 auto pad_mode_value = (primitive->GetAttr(kPadMode)); in InferShape()
Davg_pool.cc31 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
34 PadMode AvgPool::get_pad_mode() const { return PadMode(GetValue<int64_t>(GetAttr(kPadMode))); } in get_pad_mode()
93 auto pad_mode = PadMode(GetValue<int64_t>(primitive->GetAttr(kPadMode))); in InferShape()
Dadder.cc61 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
65 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dconv2d_transpose.cc90 (void)AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
144 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dconv2d.cc291 (void)AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
334 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Davg_pool_3d.cc53 CheckAndConvertUtils::GetPadModEnumValue(primitive->GetAttr(kPadMode), pad_mode, true); in GetAttrs()
Dop_utils.h157 constexpr auto kPadMode = "pad_mode"; variable
/third_party/mindspore/mindspore/core/ops/grad/
Dpool_grad.cc69 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
90 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dpooling_grad.cc64 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
68 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dde_conv2d_grad_filter.cc74 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
78 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dgroup_conv2d_grad_input.cc75 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
79 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dconv2d_backprop_input.cc44 CheckAndConvertUtils::GetPadModEnumValue(primitive->GetAttr(kPadMode), &pad_mode, true); in SetPadList()
216 (void)AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
267 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
Dconv2d_backprop_filter.cc164 (void)this->AddAttr(kPadMode, MakeValue(swi)); in set_pad_mode()
168 auto value_ptr = GetAttr(kPadMode); in get_pad_mode()
/third_party/mindspore/mindspore/core/ops/fusion/
Dmax_pool_fusion.cc66 auto pad_mode = PadMode(GetValue<int64_t>(primitive->GetAttr(kPadMode))); in InferShape()
Davg_pool_fusion.cc68 auto pad_mode = PadMode(GetValue<int64_t>(primitive->GetAttr(kPadMode))); in InferShape()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dconv_conv_fusion.cc224 …int64_t up_pad_mode = up_conv_primitive->GetAttr(ops::kPadMode) == nullptr ? 0 : up_conv_primitive… in IsPrimitiveProper()
226 … down_conv_primitive->GetAttr(ops::kPadMode) == nullptr ? 0 : down_conv_primitive->get_pad_mode(); in IsPrimitiveProper()
Dconv_pad_fusion.cc69 …int64_t conv_pad_mode = conv_primitive->GetAttr(ops::kPadMode) == nullptr ? 0 : conv_primitive->ge… in ReplaceParamsAndNodes()
/third_party/mindspore/mindspore/lite/tools/converter/acl/mapper/
Dprimitive_mapper.cc117 auto pad_mode_val = dst_prim->GetAttr(ops::kPadMode); in AdjustOnnxPoolAttr()
/third_party/mindspore/mindspore/lite/tools/optimizer/parallel/
Dmulti_conv_info.cc70 MS_CHECK_TRUE_RET(conv_prim->GetAttr(ops::kPadMode) != nullptr, false); in CheckSplitValid()
/third_party/mindspore/mindspore/core/utils/
Dcheck_convert_utils.cc94 {ops::kPadMode, PadModeConverter},
99 {ops::kPadMode, PadModeUpperConverter},