Home
last modified time | relevance | path

Searched refs:src_desc (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/
Dlog_softmax_grad_cpu_kernel.cc41 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
43 dnnl::logsoftmax_forward::desc(dnnl::prop_kind::forward_training, src_desc, axis); in InitKernel()
46 …ogsoftmax_backward::desc backward_desc = dnnl::logsoftmax_backward::desc(src_desc, src_desc, axis); in InitKernel()
50 AddArgument(DNNL_ARG_DST, src_desc); in InitKernel()
51 AddArgument(DNNL_ARG_DIFF_SRC, src_desc); in InitKernel()
52 AddArgument(DNNL_ARG_DIFF_DST, src_desc); in InitKernel()
Deltwise_cpu_kernel.cc37 …:eltwise_forward::desc EltWiseCPUKernel::GetForwardEltwiseDesc(const dnnl::memory::desc src_desc) { in GetForwardEltwiseDesc() argument
54 …return dnnl::eltwise_forward::desc(dnnl_forward_, desc_pair->second.algorithm, src_desc, desc_pair… in GetForwardEltwiseDesc()
65 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
67 auto desc = GetForwardEltwiseDesc(src_desc); in InitKernel()
70 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
71 AddArgument(DNNL_ARG_DST, src_desc); in InitKernel()
Dlog_softmax_cpu_kernel.cc41 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
43 dnnl::logsoftmax_forward::desc(dnnl::prop_kind::forward_training, src_desc, axis); in InitKernel()
46 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
47 AddArgument(DNNL_ARG_DST, src_desc); in InitKernel()
Dsoftmax_cpu_kernel.cc48 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
49 …orward::desc desc = dnnl::softmax_forward::desc(dnnl::prop_kind::forward_training, src_desc, axis); in InitKernel()
52 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
53 AddArgument(DNNL_ARG_DST, src_desc); in InitKernel()
Dpooling_avg_grad_cpu_kernel.cc40 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
70 …_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::pooling_avg, src_desc, dst_desc, in InitKernel()
76 …dnnl::algorithm::pooling_avg, src_desc, dst_desc, strides_dims, kernels_dims, padding_l, padding_r… in InitKernel()
81 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
83 AddArgument(DNNL_ARG_DIFF_SRC, src_desc); in InitKernel()
Dlstm_grad_cpu_kernel.cc60 dnnl::memory::desc src_desc = formatted_md(src_dims, tag::tnc); in InitKernel() local
68 dnnl::prop_kind::forward_training, direction, src_desc, src_h_desc, src_c_desc, in InitKernel()
73 …dnnl::prop_kind::backward, direction, src_desc, src_h_desc, src_c_desc, formatted_md(weights_dims_… in InitKernel()
74 …formatted_md(weights_h_dims_, tag::any), bias_desc, dst_desc, dst_h_desc, dst_c_desc, src_desc, sr… in InitKernel()
81 AddArgumentOp(src_desc, src_h_desc, src_c_desc, bias_desc, dst_desc, dst_h_desc, dst_c_desc); in InitKernel()
84 void LSTMGradCPUKernel::AddArgumentOp(const dnnl::memory::desc &src_desc, const dnnl::memory::desc … in AddArgumentOp() argument
88 AddArgument(DNNL_ARG_SRC_LAYER, src_desc); in AddArgumentOp()
97 AddArgument(DNNL_ARG_DIFF_SRC_LAYER, src_desc); in AddArgumentOp()
Dpooling_cpu_kernel.cc40 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
81 …_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::pooling_max, src_desc, dst_desc, in InitKernel()
84 …l::pooling_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::pooling_avg, src_desc, in InitKernel()
90 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
Dconv2d_grad_filter_cpu_kernel.cc51 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
86 …ution_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::convolution_auto, src_desc, in InitKernel()
92 …dnnl::algorithm::convolution_auto, src_desc, weights_desc, dst_desc, strides, dilates, padding_l, … in InitKernel()
98 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
Dconv2d_grad_input_cpu_kernel.cc53 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
99 …ution_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::convolution_auto, src_desc, in InitKernel()
105 …dnnl::algorithm::convolution_auto, src_desc, weights_desc, dst_desc, strides, dilates, padding_l, … in InitKernel()
111 AddArgument(DNNL_ARG_DIFF_SRC, src_desc); in InitKernel()
Dconv_cpu_kernel.cc57 dnnl::memory::desc src_desc = GetDefaultMemDesc(src_shape); in InitKernel() local
107 …ution_forward::desc(dnnl::prop_kind::forward_training, dnnl::algorithm::convolution_auto, src_desc, in InitKernel()
112 AddArgument(DNNL_ARG_SRC, src_desc); in InitKernel()
Dlstm_cpu_kernel.cc78 dnnl::memory::desc src_desc = formatted_md(src_dims, tag::tnc); in InitKernel() local
95 prop_kind, direction, src_desc, src_h_desc, src_c_desc, formatted_md(weights_dims_, tag::any), in InitKernel()
105 AddArgument(DNNL_ARG_SRC_LAYER, src_desc); in InitKernel()
Deltwise_cpu_kernel.h37 dnnl::eltwise_forward::desc GetForwardEltwiseDesc(const dnnl::memory::desc src_desc);
Dlstm_grad_cpu_kernel.h40 void AddArgumentOp(const dnnl::memory::desc &src_desc, const dnnl::memory::desc &src_h_desc,
/third_party/gstreamer/gstplugins_bad/sys/winscreencap/
Ddxgicapture.c157 ID3D11Texture2D * src_texture, const D3D11_TEXTURE2D_DESC * src_desc,
162 const D3D11_TEXTURE2D_DESC * src_desc);
837 D3D11_TEXTURE2D_DESC src_desc; in _update_work_texture() local
912 ID3D11Texture2D_GetDesc (desktop_texture, &src_desc); in _update_work_texture()
915 hr = _copy_dirty_fragment (self, desktop_texture, &src_desc, move_count, in _update_work_texture()
976 const D3D11_TEXTURE2D_DESC * src_desc, guint move_count, guint dirty_count, in _copy_dirty_fragment() argument
993 shader_desc.Format = src_desc->Format; in _copy_dirty_fragment()
995 shader_desc.Texture2D.MostDetailedMip = src_desc->MipLevels - 1; in _copy_dirty_fragment()
996 shader_desc.Texture2D.MipLevels = src_desc->MipLevels; in _copy_dirty_fragment()
1039 &(self->move_rects[i].DestinationRect), src_desc); in _copy_dirty_fragment()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_copyimage.c289 const struct util_format_description *src_desc, *dst_desc; in swizzled_copy() local
305 src_desc = util_format_description(blit_src_format); in swizzled_copy()
308 assert(src_desc->block.bits == dst_desc->block.bits); in swizzled_copy()
309 bits = src_desc->block.bits; in swizzled_copy()
311 if (dst_desc->channel[0].size == src_desc->channel[0].size) { in swizzled_copy()
315 } else if (has_identity_swizzle(src_desc)) { in swizzled_copy()
328 canonical_format_from_bits(bits, src_desc->channel[0].size); in swizzled_copy()
412 const struct util_format_description *src_desc, *dst_desc; in handle_complex_copy() local
419 src_desc = util_format_description(src->format); in handle_complex_copy()
424 src_is_canon = same_size_and_swizzle(src_desc, canon_desc); in handle_complex_copy()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_blit.c254 const struct util_format_description *src_desc = util_format_description(info->src.format); in zink_blit() local
261 if (src_desc == dst_desc || in zink_blit()
262 src_desc->nr_channels != 4 || src_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN || in zink_blit()
263 (src_desc->nr_channels == 4 && src_desc->channel[3].type != UTIL_FORMAT_TYPE_VOID)) { in zink_blit()
/third_party/mesa3d/src/util/format/
Du_format.c514 util_is_format_compatible(const struct util_format_description *src_desc, in util_is_format_compatible() argument
519 if (src_desc->format == dst_desc->format) { in util_is_format_compatible()
523 if (src_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN || in util_is_format_compatible()
528 if (src_desc->block.bits != dst_desc->block.bits || in util_is_format_compatible()
529 src_desc->nr_channels != dst_desc->nr_channels || in util_is_format_compatible()
530 src_desc->colorspace != dst_desc->colorspace) { in util_is_format_compatible()
535 if (src_desc->channel[chan].size != in util_is_format_compatible()
545 if (src_desc->swizzle[chan] != swizzle) { in util_is_format_compatible()
548 if ((src_desc->channel[swizzle].type != in util_is_format_compatible()
550 (src_desc->channel[swizzle].normalized != in util_is_format_compatible()
/third_party/ffmpeg/libavutil/
Dpixdesc.c2744 const AVPixFmtDescriptor *src_desc = av_pix_fmt_desc_get(src_pix_fmt); in get_pix_fmt_score() local
2751 if (!src_desc || !dst_desc) in get_pix_fmt_score()
2754 if ((src_desc->flags & AV_PIX_FMT_FLAG_HWACCEL) || in get_pix_fmt_score()
2773 src_color = get_color_type(src_desc); in get_pix_fmt_score()
2776 nb_components = FFMIN(src_desc->nb_components, 4); in get_pix_fmt_score()
2778 nb_components = FFMIN(src_desc->nb_components, dst_desc->nb_components); in get_pix_fmt_score()
2782 if (src_desc->comp[i].depth - 1 > depth_minus1 && (consider & FF_LOSS_DEPTH)) { in get_pix_fmt_score()
2789 if (dst_desc->log2_chroma_w > src_desc->log2_chroma_w) { in get_pix_fmt_score()
2793 if (dst_desc->log2_chroma_h > src_desc->log2_chroma_h) { in get_pix_fmt_score()
2798 if (dst_desc->log2_chroma_w == 1 && src_desc->log2_chroma_w == 0 && in get_pix_fmt_score()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11pluginutils.cpp751 D3D11_TEXTURE2D_DESC dst_desc, src_desc; in gst_d3d11_buffer_copy_into() local
767 gst_d3d11_memory_get_texture_desc (src_dmem, &src_desc); in gst_d3d11_buffer_copy_into()
769 if (dst_desc.Format != src_desc.Format) { in gst_d3d11_buffer_copy_into()
798 src_box.right = MIN (src_desc.Width, dst_desc.Width); in gst_d3d11_buffer_copy_into()
799 src_box.bottom = MIN (src_desc.Height, dst_desc.Height); in gst_d3d11_buffer_copy_into()
Dgstd3d11convert.cpp2095 D3D11_TEXTURE2D_DESC src_desc; in gst_d3d11_base_convert_transform() local
2099 gst_d3d11_memory_get_texture_desc (mem, &src_desc); in gst_d3d11_base_convert_transform()
2107 src_box.right = MIN (src_desc.Width, dst_desc.Width); in gst_d3d11_base_convert_transform()
2108 src_box.bottom = MIN (src_desc.Height, dst_desc.Height); in gst_d3d11_base_convert_transform()
2156 D3D11_TEXTURE2D_DESC src_desc; in gst_d3d11_base_convert_transform() local
2159 self->out_texture[i]->GetDesc (&src_desc); in gst_d3d11_base_convert_transform()
2167 src_box.right = MIN (src_desc.Width, dst_desc.Width); in gst_d3d11_base_convert_transform()
2168 src_box.bottom = MIN (src_desc.Height, dst_desc.Height); in gst_d3d11_base_convert_transform()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11memory.cpp1265 D3D11_TEXTURE2D_DESC src_desc = { 0, }; in gst_d3d11_memory_copy() local
1288 dmem->priv->texture->GetDesc (&src_desc); in gst_d3d11_memory_copy()
1289 dst_desc.Width = src_desc.Width; in gst_d3d11_memory_copy()
1290 dst_desc.Height = src_desc.Height; in gst_d3d11_memory_copy()
1292 dst_desc.Format = src_desc.Format; in gst_d3d11_memory_copy()
1298 hr = device_handle->CheckFormatSupport (src_desc.Format, &supported_flags); in gst_d3d11_memory_copy()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_descriptor_set.c465 struct lvp_descriptor *src_desc = in lvp_UpdateDescriptorSets() local
467 src_desc += copy->srcArrayElement; in lvp_UpdateDescriptorSets()
476 dst_desc[j] = src_desc[j]; in lvp_UpdateDescriptorSets()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_surface.c772 const struct util_format_description *src_desc, *dst_desc; in util_can_blit_via_copy_region() local
774 src_desc = util_format_description(blit->src.resource->format); in util_can_blit_via_copy_region()
787 !util_is_format_compatible(src_desc, dst_desc)) { in util_can_blit_via_copy_region()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_blit.c421 const struct util_format_description *src_desc, *dst_desc; in can_blit_via_surface_copy() local
423 src_desc = util_format_description(blit_info->src.resource->format); in can_blit_via_surface_copy()
428 !util_is_format_compatible(src_desc, dst_desc)) in can_blit_via_surface_copy()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blitter.c215 const struct util_format_description *src_desc = in can_do_blit() local
220 MIN2(src_desc->nr_channels, dst_desc->nr_channels); in can_do_blit()
224 fail_if(memcmp(&src_desc->channel[i], &dst_desc->channel[i], in can_do_blit()
225 sizeof(src_desc->channel[0]))); in can_do_blit()

12