Home
last modified time | relevance | path

Searched refs:ow (Results 1 – 25 of 114) sorted by relevance

12345

/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Dresize_tests.cc41 int ow = 4; in TEST_F() local
45 std::vector<int> output_shape = {1, oh, ow, 1}; in TEST_F()
49 auto *param = CreateParameter(method, oh, ow, align_corners); in TEST_F()
57 int ow = 3; in TEST_F() local
61 std::vector<int> output_shape = {1, oh, ow, 1}; in TEST_F()
65 auto *param = CreateParameter(method, oh, ow, align_corners); in TEST_F()
73 int ow = 4; in TEST_F() local
77 std::vector<int> output_shape = {1, oh, ow, 1}; in TEST_F()
81 auto *param = CreateParameter(method, oh, ow, align_corners); in TEST_F()
89 int ow = 4; in TEST_F() local
[all …]
Dconv2d_transpose_tests.cc25 …arameter(int n, int h, int w, int ci, int co, int kh, int kw, std::vector<int> pad, int oh, int ow, in CreateParameter() argument
46 *output_shape = {1, oh, ow, co}; in CreateParameter()
56 int ow = 4; in TEST_F() local
70 …CreateParameter(n, h, w, ci, co, kh, kw, pad, oh, ow, &input_shape, &weight_shape, &bias_shape, &o… in TEST_F()
83 int ow = 5; in TEST_F() local
98 …CreateParameter(n, h, w, ci, co, kh, kw, pad, oh, ow, &input_shape, &weight_shape, &bias_shape, &o… in TEST_F()
110 int ow = 5; in TEST_F() local
126 …CreateParameter(n, h, w, ci, co, kh, kw, pad, oh, ow, &input_shape, &weight_shape, &bias_shape, &o… in TEST_F()
139 int ow = 4; in TEST_F() local
154 …CreateParameter(n, h, w, ci, co, kh, kw, pad, oh, ow, &input_shape, &weight_shape, &bias_shape, &o… in TEST_F()
[all …]
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.h81 ObjectWriter* ow) const override;
138 ObjectWriter* ow) const;
145 uint32 list_tag, ObjectWriter* ow) const;
154 ObjectWriter* ow) const;
183 ObjectWriter* ow) const;
189 ObjectWriter* ow) const;
195 ObjectWriter* ow);
201 ObjectWriter* ow);
207 StringPiece name, ObjectWriter* ow);
210 StringPiece name, ObjectWriter* ow);
[all …]
Dprotostream_objectsource.cc163 ObjectWriter* ow) const { in NamedWriteTo()
164 return WriteMessage(type_, name, 0, true, ow); in NamedWriteTo()
191 ObjectWriter* ow) const { in WriteMessage()
195 return (*type_renderer)(this, type, name, ow); in WriteMessage()
209 ow->StartObject(name); in WriteMessage()
234 ow->StartObject(field_name); in WriteMessage()
235 ASSIGN_OR_RETURN(tag, RenderMap(field, field_name, tag, ow)); in WriteMessage()
236 ow->EndObject(); in WriteMessage()
238 ASSIGN_OR_RETURN(tag, RenderList(field, field_name, tag, ow)); in WriteMessage()
242 RETURN_IF_ERROR(RenderField(field, field_name, ow)); in WriteMessage()
[all …]
Dobject_writer.cc42 StringPiece name, ObjectWriter* ow) { in RenderDataPieceTo() argument
45 ow->RenderInt32(name, data.ToInt32().value()); in RenderDataPieceTo()
49 ow->RenderInt64(name, data.ToInt64().value()); in RenderDataPieceTo()
53 ow->RenderUint32(name, data.ToUint32().value()); in RenderDataPieceTo()
57 ow->RenderUint64(name, data.ToUint64().value()); in RenderDataPieceTo()
61 ow->RenderDouble(name, data.ToDouble().value()); in RenderDataPieceTo()
65 ow->RenderFloat(name, data.ToFloat().value()); in RenderDataPieceTo()
69 ow->RenderBool(name, data.ToBool().value()); in RenderDataPieceTo()
73 ow->RenderString(name, data.ToString().value()); in RenderDataPieceTo()
77 ow->RenderBytes(name, data.ToBytes().ValueOrDie()); in RenderDataPieceTo()
[all …]
Dprotostream_objectwriter.cc890 Status ProtoStreamObjectWriter::RenderStructValue(ProtoStreamObjectWriter* ow, in RenderStructValue() argument
895 if (ow->options_.struct_integers_as_strings) { in RenderStructValue()
898 ow->ProtoWriter::RenderDataPiece( in RenderStructValue()
908 if (ow->options_.struct_integers_as_strings) { in RenderStructValue()
911 ow->ProtoWriter::RenderDataPiece( in RenderStructValue()
923 if (ow->options_.struct_integers_as_strings) { in RenderStructValue()
926 ow->ProtoWriter::RenderDataPiece( in RenderStructValue()
937 if (ow->options_.struct_integers_as_strings) { in RenderStructValue()
940 ow->ProtoWriter::RenderDataPiece( in RenderStructValue()
949 if (ow->options_.struct_integers_as_strings) { in RenderStructValue()
[all …]
Dobject_source.h59 virtual util::Status WriteTo(ObjectWriter* ow) const { in WriteTo() argument
60 return NamedWriteTo("", ow); in WriteTo()
67 ObjectWriter* ow) const = 0;
Ddefault_value_objectwriter.cc61 ObjectWriter* ow) in DefaultValueObjectWriter() argument
70 ow_(ow) {} in DefaultValueObjectWriter()
232 void DefaultValueObjectWriter::Node::WriteTo(ObjectWriter* ow) { in WriteTo() argument
234 ObjectWriter::RenderDataPieceTo(data_, name_, ow); in WriteTo()
240 ow->StartObject(name_); in WriteTo()
241 WriteChildren(ow); in WriteTo()
242 ow->EndObject(); in WriteTo()
252 ow->StartList(name_); in WriteTo()
253 WriteChildren(ow); in WriteTo()
254 ow->EndList(); in WriteTo()
[all …]
Dprotostream_objectwriter.h349 static util::Status RenderStructValue(ProtoStreamObjectWriter* ow,
353 static util::Status RenderTimestamp(ProtoStreamObjectWriter* ow,
357 static util::Status RenderFieldMask(ProtoStreamObjectWriter* ow,
361 static util::Status RenderDuration(ProtoStreamObjectWriter* ow,
366 static util::Status RenderWrapperType(ProtoStreamObjectWriter* ow,
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dadaptive_avg_pool2d_impl.cu40 for (uint ow = 0; ow < output_width; ow++) { in AdaptiveAvgPool2DKernel() local
41 uint iw0 = start_index(ow, output_width, input_width); in AdaptiveAvgPool2DKernel()
42 uint iw1 = end_index(ow, output_width, input_width); in AdaptiveAvgPool2DKernel()
52 output_ptr[oh * output_width + ow] = sum / kh / kw; in AdaptiveAvgPool2DKernel()
71 for (uint ow = 0; ow < output_width; ow++) { in AdaptiveAvgPool2DKernel() local
72 uint iw0 = start_index(ow, output_width, input_width); in AdaptiveAvgPool2DKernel()
73 uint iw1 = end_index(ow, output_width, input_width); in AdaptiveAvgPool2DKernel()
83 output_ptr[oh * output_width + ow] = sum / __uint2float_rn(kh * kw); in AdaptiveAvgPool2DKernel()
102 for (uint ow = 0; ow < output_width; ow++) { in AdaptiveAvgPool2DKernel() local
103 uint iw0 = start_index(ow, output_width, input_width); in AdaptiveAvgPool2DKernel()
[all …]
Ddepthtospace_impl.cu24 const size_t ow, const size_t r, T *output) { in DepthToSpace() argument
32 temp_stride = oc * oh * ow; in DepthToSpace()
44 temp_stride /= ow; in DepthToSpace()
65 const size_t ow, const size_t r, T *output, in CalDepthToSpace() argument
68 size, input, in, ic, ih, iw, on, oc, oh, ow, r, output); in CalDepthToSpace()
76 const size_t oh, const size_t ow,
83 const size_t oh, const size_t ow,
90 const size_t oh, const size_t ow,
97 const size_t oh, const size_t ow,
104 const size_t oh, const size_t ow,
[all …]
Dspacetodepth_impl.cu25 const size_t ow, const size_t r, T *output) { in SpaceToDepth() argument
53 output_pos = (output_pos * ow) + (input_pos_array[3] / r); in SpaceToDepth()
65 const size_t ow, const size_t r, T *output, in CalSpaceToDepth() argument
68 size, input, in, ic, ih, iw, on, oc, oh, ow, r, output); in CalSpaceToDepth()
76 const size_t oh, const size_t ow,
83 const size_t oh, const size_t ow,
90 const size_t oh, const size_t ow,
97 const size_t oh, const size_t ow,
104 const size_t oh, const size_t ow,
111 const size_t oh, const size_t ow,
[all …]
Dadaptive_avg_pool2d_grad_impl.cu52 for (uint ow = ow0; ow < ow1; ow++) { in AdaptiveAvgPool2DGradKernel() local
53 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
86 for (uint ow = ow0; ow < ow1; ow++) { in AdaptiveAvgPool2DGradKernel() local
87 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
120 for (uint ow = ow0; ow < ow1; ow++) { in AdaptiveAvgPool2DGradKernel() local
121 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
154 for (uint ow = ow0; ow < ow1; ow++) { in AdaptiveAvgPool2DGradKernel() local
155 output_ptr[oh * output_width + ow] += delta; in AdaptiveAvgPool2DGradKernel()
Dbatchtospace_impl.cu23 const size_t on, const size_t oh, const size_t ow, in BatchToSpace() argument
37 temp_stride = oc * oh * ow; in BatchToSpace()
49 temp_stride /= ow; in BatchToSpace()
65 const size_t on, const size_t oh, const size_t ow, in CalBatchToSpace() argument
70 …size, input, in, ih, iw, ic, on, oh, ow, oc, crop_up, crop_dn, crop_lft, crop_rht, block_num, outp… in CalBatchToSpace()
76 const size_t on, const size_t oh, const size_t ow,
82 const size_t on, const size_t oh, const size_t ow,
88 const size_t on, const size_t oh, const size_t ow,
94 const size_t on, const size_t oh, const size_t ow,
100 const size_t on, const size_t oh, const size_t ow,
[all …]
Dspacetobatch_impl.cu23 const size_t on, const size_t oh, const size_t ow, in SpaceToBatch() argument
55 output_pos = (output_pos + ((idx_ih + pad_up) - (idx_on / (in * block_num))) / block_num) * ow; in SpaceToBatch()
65 const size_t on, const size_t oh, const size_t ow, in CalSpaceToBatch() argument
69 cudaMemset(output, 0, on * oc * oh * ow * sizeof(T)); in CalSpaceToBatch()
71 … size, input, in, ih, iw, ic, on, oh, ow, oc, pad_up, pad_dn, pad_lft, pad_rht, block_num, output); in CalSpaceToBatch()
77 const size_t on, const size_t oh, const size_t ow,
83 const size_t on, const size_t oh, const size_t ow,
89 const size_t on, const size_t oh, const size_t ow,
95 const size_t on, const size_t oh, const size_t ow,
101 const size_t on, const size_t oh, const size_t ow,
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dconv_depthwise_fp16.c178 int ow = 2; in ConvDw3x3InitTopFp16() local
179 for (; ow < width - 2; ow += 2) { in ConvDw3x3InitTopFp16()
180 ConvDw3x3RowMiddleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
181 …ConvDw3x3RowMiddleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitTopFp16()
183 int remain = width - ow; in ConvDw3x3InitTopFp16()
185 ConvDw3x3RowRightFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
186 …ConvDw3x3RowRightFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
188 ConvDw3x3RowSingleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
189 …ConvDw3x3RowSingleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitTopFp16()
201 int ow = 2; in ConvDw3x3InitRowFp16() local
[all …]
Ddeconv_fp16.c44 int ow = iw * conv_param->stride_w_ - conv_param->pad_l_; in DeConvPostFp16() local
48 int kw_start = MSMAX(0, UP_DIV(-ow, conv_param->dilation_w_)); in DeConvPostFp16()
49 …int kw_end = MSMIN(conv_param->kernel_w_, UP_DIV(conv_param->output_w_ - ow, conv_param->dilation_… in DeConvPostFp16()
53 … int dst_index = oh * dst_oh_stride + ow * dst_ow_stride + kh * dst_kh_stride + kw * dst_kw_stride; in DeConvPostFp16()
/third_party/mindspore/tests/st/networks/models/deeplabv3/src/utils/
Dcustom_transforms.py91 ow = short_size
92 oh = int(1.0 * h * ow / w)
95 ow = int(1.0 * w * oh / h)
96 img = img.resize((ow, oh), Image.BILINEAR)
97 mask = mask.resize((ow, oh), Image.NEAREST)
101 padw = self.crop_size - ow if ow < self.crop_size else 0
123 ow = int(1.0 * w * oh / h)
125 ow = self.crop_size
126 oh = int(1.0 * h * ow / w)
127 img = img.resize((ow, oh), Image.BILINEAR)
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dconv_depthwise_fp32.c55 for (int ow = 0; ow < conv_param->output_w_; ow++) { in ConvDw() local
56 memcpy(dst_data + ow * conv_param->output_channel_, bias_data, in ConvDw()
221 for (int ow = left; ow < right; ow++) { in ConvDwBorder() local
222 int iw = ow * conv_param->stride_w_ - conv_param->pad_l_; in ConvDwBorder()
270 for (int ow = 0; ow < width; ow++) { in ConvDwCenter() local
504 int ow = 2; in ConvDw3x3InitTop() local
505 for (; ow < width - 2; ow += 2) { in ConvDw3x3InitTop()
506 ConvDw3x3RowMiddle(src + (ow - 1) * channel, line1 + 2 * ow * 4, lw, channel); in ConvDw3x3InitTop()
507 ConvDw3x3RowMiddle(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 4, lw, channel); in ConvDw3x3InitTop()
509 int remain = width - ow; in ConvDw3x3InitTop()
[all …]
Ddeconv_fp32.c69 int ow = iw * conv_param->stride_w_ - conv_param->pad_l_; in DeConvPostFp32C8() local
73 int kw_start = MSMAX(0, UP_DIV(-ow, conv_param->dilation_w_)); in DeConvPostFp32C8()
74 …int kw_end = MSMIN(conv_param->kernel_w_, UP_DIV(conv_param->output_w_ - ow, conv_param->dilation_… in DeConvPostFp32C8()
78 … int dst_index = oh * dst_oh_stride + ow * dst_ow_stride + kh * dst_kh_stride + kw * dst_kw_stride; in DeConvPostFp32C8()
/third_party/mesa3d/src/mesa/math/
Dm_xform_tmp.h593 const GLfloat ox = from[0], oy = from[1], oz = from[2], ow = from[3]; in TAG() local
594 to[i][0] = m0 * ox + m4 * oy + m8 * oz + m12 * ow; in TAG()
595 to[i][1] = m1 * ox + m5 * oy + m9 * oz + m13 * ow; in TAG()
596 to[i][2] = m2 * ox + m6 * oy + m10 * oz + m14 * ow; in TAG()
597 to[i][3] = m3 * ox + m7 * oy + m11 * oz + m15 * ow; in TAG()
640 const GLfloat ox = from[0], oy = from[1], oz = from[2], ow = from[3]; in TAG() local
641 to[i][0] = m0 * ox + m4 * oy + m12 * ow; in TAG()
642 to[i][1] = m1 * ox + m5 * oy + m13 * ow; in TAG()
644 to[i][3] = ow; in TAG()
663 const GLfloat ox = from[0], oy = from[1], oz = from[2], ow = from[3]; in TAG() local
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Dpad.cl26 int ow = get_global_id(1);
30 if (on >= ON || oh >= OH || ow >= OW || co_slice >= CO_SLICES) {
36 int iw = ow - pad_before.z;
39 WRITE_IMAGE(output, (int2)(ow * CO_SLICES + co_slice, on_oh), (FLT4)(constant_value));
49 WRITE_IMAGE(output, (int2)(ow * CO_SLICES + co_slice, on_oh), src0);
71 WRITE_IMAGE(output, (int2)(ow * CO_SLICES + co_slice, on_oh), out_f4);
Dstrided_slice.cl26 int ow = get_global_id(1);
30 if (on >= ON || oh >= OH || ow >= OW || co_slice >= CO_SLICES) {
45 int idx = ((on * OH + oh) * OW + ow) * CO + co_slice * 4 + i;
73 WRITE_IMAGE(output, (int2)(ow * CO_SLICES + co_slice, on_oh), out);
/third_party/ffmpeg/libavcodec/
Dhevc_parser.c61 const HEVCWindow *ow; in hevc_parse_slice_header() local
91 ow = &ps->sps->output_window; in hevc_parse_slice_header()
95 s->width = ps->sps->width - ow->left_offset - ow->right_offset; in hevc_parse_slice_header()
96 s->height = ps->sps->height - ow->top_offset - ow->bottom_offset; in hevc_parse_slice_header()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Ddeconv_int8.c46 int ow = iw * conv_param->stride_w_ - conv_param->pad_l_; in DeConvPostInt8C4() local
50 int kw_start = MSMAX(0, UP_DIV(-ow, conv_param->dilation_w_)); in DeConvPostInt8C4()
51 …int kw_end = MSMIN(conv_param->kernel_w_, UP_DIV(conv_param->output_w_ - ow, conv_param->dilation_… in DeConvPostInt8C4()
55 … int dst_index = oh * dst_oh_stride + ow * dst_ow_stride + kh * dst_kh_stride + kw * dst_kw_stride; in DeConvPostInt8C4()

12345