Home
last modified time | relevance | path

Searched refs:kKernelSize (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dupdate_conv2d_param_pass.cc28 if (prim->GetAttr(ops::kKernelSize) == nullptr) { in SetConvAttr()
29 prim->AddAttr(ops::kKernelSize, MakeValue(kernel_size)); in SetConvAttr()
31 auto origin_kernel_size = GetValue<std::vector<int64_t>>(prim->GetAttr(ops::kKernelSize)); in SetConvAttr()
33 prim->AddAttr(ops::kKernelSize, MakeValue(kernel_size)); in SetConvAttr()
/third_party/mindspore/mindspore/core/ops/fusion/
Dconv2d_transpose_fusion.cc44 …(void)CheckAndConvertUtils::CheckInteger(kKernelSize, SizeToLong(kernel_size.size()), kEqual, kern… in set_kernel_size()
46 (void)CheckAndConvertUtils::CheckInteger(kKernelSize, item, kGreaterEqual, 1, name()); in set_kernel_size()
48 (void)AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
Dmax_pool_fusion.cc65 auto kernel_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kKernelSize)); in InferShape()
Davg_pool_fusion.cc67 auto kernel_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kKernelSize)); in InferShape()
/third_party/mindspore/mindspore/core/ops/grad/
Dpool_grad.cc58 std::vector<int64_t> k_size = _grad_check_vector(kKernelSize, kernel_size, this->name()); in set_kernel_size()
59 (void)this->AddAttr(kKernelSize, MakeValue(k_size)); in set_kernel_size()
78 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dconv2d_backprop_input.cc38 …CheckAndConvertUtils::CheckAttrIntOrTupleInt("kernel_size", primitive->GetAttr(kKernelSize), prim_… in SetPadList()
195 …(void)AddAttr(kKernelSize, MakeValue(CheckAndConvertUtils::CheckPositiveVector(kKernelSize, kernel… in set_kernel_size()
249 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dde_conv2d_grad_filter.cc63 (void)this->AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
67 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dgroup_conv2d_grad_input.cc64 (void)this->AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
68 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dconv2d_backprop_filter.cc153 (void)this->AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
157 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
/third_party/mindspore/mindspore/core/ops/
Dconv2d_transpose.cc57 …(void)CheckAndConvertUtils::CheckInteger(kKernelSize, SizeToLong(kernel_size.size()), kEqual, kern… in set_kernel_size()
59 (void)CheckAndConvertUtils::CheckInteger(kKernelSize, item, kGreaterEqual, 1, name()); in set_kernel_size()
61 (void)AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
129 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dmax_pool.cc36 (void)this->AddAttr(kKernelSize, in set_kernel_size()
37 … MakeValue(CheckAndConvertUtils::CheckPositiveVector(kKernelSize, kernel_size, this->name()))); in set_kernel_size()
40 …> MaxPool::get_kernel_size() const { return GetValue<std::vector<int64_t>>(GetAttr(kKernelSize)); } in get_kernel_size()
94 auto kernel_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kKernelSize)); in InferShape()
Davg_pool.cc36 (void)this->AddAttr(kKernelSize, in set_kernel_size()
37 … MakeValue(CheckAndConvertUtils::CheckPositiveVector(kKernelSize, kernel_size, this->name()))); in set_kernel_size()
40 …> AvgPool::get_kernel_size() const { return GetValue<std::vector<int64_t>>(GetAttr(kKernelSize)); } in get_kernel_size()
92 auto kernel_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kKernelSize)); in InferShape()
Dadder.cc51 (void)this->AddAttr(kKernelSize, MakeValue(kernel_size)); in set_kernel_size()
55 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Dconv2d.cc270 …(void)AddAttr(kKernelSize, MakeValue(CheckAndConvertUtils::CheckPositiveVector(kKernelSize, kernel… in set_kernel_size()
319 auto value_ptr = GetAttr(kKernelSize); in get_kernel_size()
Davg_pool_3d.cc38 *kernel_size = GetValue<std::vector<int64_t>>(primitive->GetAttr(kKernelSize)); in GetAttrs()
Dop_utils.h106 constexpr auto kKernelSize = "kernel_size"; variable
/third_party/mindspore/mindspore/lite/tools/converter/acl/mapper/
Davgpool_fusion_mapper.cc39 ValuePtr val_ptr = src_prim->GetAttr(ops::kKernelSize); in Mapper()
Dprimitive_mapper.cc139 auto status = AttrAdjust(dst_prim, ops::kKernelSize); in AdjustPoolAttr()
/third_party/mindspore/mindspore/lite/tools/converter/import/
Dprimitive_adjust.cc192 if (name == ops::kKernelSize && origin_value.size() == 1) { in AttrAdjust()
319 status = AttrAdjust(dst_prim, ops::kKernelSize, {0, 1}); in MoveAttrMapConv2D()
362 auto status = AttrAdjust(dst_prim, ops::kKernelSize, {2, 3}); in MoveAttrPool()
398 auto status = AttrAdjust(dst_prim, ops::kKernelSize, {2, 3}); in MoveAttrPoolGrad()
434 status = AttrAdjust(dst_prim, ops::kKernelSize, {0, 1}); in MoveAttrMapAdder()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dconv_pad_fusion.cc82 ValuePtr kernel_node = conv_primitive->GetAttr(ops::kKernelSize); in ReplaceParamsAndNodes()
/third_party/mindspore/mindspore/lite/tools/optimizer/parallel/
Dconv2d_info.cc223 MS_CHECK_TRUE_RET(prim->GetAttr(ops::kKernelSize) != nullptr, RET_ERROR); in CheckConv2DPrimitiveType()
Ddepthwise_conv2d_info.cc410 MS_CHECK_TRUE_RET(prim->GetAttr(ops::kKernelSize) != nullptr, RET_ERROR); in CheckDepthWiseConv2DPrimitiveType()