.. index:: pair: struct; dnnl_convolution_desc_t .. _doxid-structdnnl__convolution__desc__t: struct dnnl_convolution_desc_t ============================== .. toctree:: :hidden: Overview ~~~~~~~~ A descriptor of a convolution operation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct dnnl_convolution_desc_t { // fields :ref:`dnnl_primitive_kind_t` :ref:`primitive_kind`; :ref:`dnnl_prop_kind_t` :ref:`prop_kind`; :ref:`dnnl_alg_kind_t` :ref:`alg_kind`; :ref:`dnnl_memory_desc_t` :ref:`src_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_src_desc`; :ref:`dnnl_memory_desc_t` :ref:`weights_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_weights_desc`; :ref:`dnnl_memory_desc_t` :ref:`bias_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_bias_desc`; :ref:`dnnl_memory_desc_t` :ref:`dst_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_dst_desc`; :ref:`dnnl_dims_t` :ref:`strides`; :ref:`dnnl_dims_t` :ref:`dilates`; :ref:`dnnl_dims_t` :ref:`padding`[2]; :ref:`dnnl_data_type_t` :ref:`accum_data_type`; }; .. _details-structdnnl__convolution__desc__t: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A descriptor of a convolution operation. Fields ------ .. index:: pair: variable; primitive_kind .. _doxid-structdnnl__convolution__desc__t_1a9f27187a491d19dcd0531b652dafb221: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_primitive_kind_t` primitive_kind The kind of primitive. Used for self-identifying the primitive descriptor. Must be :ref:`dnnl_convolution `. .. index:: pair: variable; prop_kind .. _doxid-structdnnl__convolution__desc__t_1a67ab71e4cb00699db3bd310e9997e090: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_prop_kind_t` prop_kind The kind of propagation. Possible values: :ref:`dnnl_forward_training `, :ref:`dnnl_forward_inference `, :ref:`dnnl_backward_data `, :ref:`dnnl_backward_weights `, and :ref:`dnnl_backward_bias `. .. index:: pair: variable; alg_kind .. _doxid-structdnnl__convolution__desc__t_1a9a82a0415d9052264a259dd3f9ccaaf1: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_alg_kind_t` alg_kind The kind of the convolution algorithm. Possible values: :ref:`dnnl_convolution_direct `. .. index:: pair: variable; src_desc .. _doxid-structdnnl__convolution__desc__t_1acdc7ecf03191879af713f2073d8642b6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` src_desc Source memory descriptor. .. index:: pair: variable; diff_src_desc .. _doxid-structdnnl__convolution__desc__t_1a5edb75c772fe7c86f9c369cd00a33729: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_src_desc Source gradient memory descriptor. .. index:: pair: variable; weights_desc .. _doxid-structdnnl__convolution__desc__t_1aeb5243cdb8efc246eecd28398716b76f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` weights_desc Weights memory descriptor. .. index:: pair: variable; diff_weights_desc .. _doxid-structdnnl__convolution__desc__t_1aaee4a5b0219fcbc45a6aade038b89899: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_weights_desc Weights gradient memory descriptor. .. index:: pair: variable; bias_desc .. _doxid-structdnnl__convolution__desc__t_1ac05cda60b6614029cc7a28fd2f1f77cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` bias_desc Bias memory descriptor. .. index:: pair: variable; diff_bias_desc .. _doxid-structdnnl__convolution__desc__t_1a4f0b4fd23e368ab71d0833e903b212e6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_bias_desc Bias gradient memory descriptor. .. index:: pair: variable; dst_desc .. _doxid-structdnnl__convolution__desc__t_1a8f838e3f9d6a8e1f219483c9ba4c194f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` dst_desc Destination memory descriptor. .. index:: pair: variable; diff_dst_desc .. _doxid-structdnnl__convolution__desc__t_1a194b894341e6843f88b0ba24a1d72c0d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_dst_desc Destination gradient memory descriptor. .. index:: pair: variable; strides .. _doxid-structdnnl__convolution__desc__t_1a12d0bfc58c674901155a0e9a1f9a72f8: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` strides Convolution strides in each spatial dimension. .. index:: pair: variable; dilates .. _doxid-structdnnl__convolution__desc__t_1a269474b0f8c2686623aa03ce752f0d66: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` dilates Convolution dilates in each spatial dimension. .. index:: pair: variable; padding .. _doxid-structdnnl__convolution__desc__t_1a0159d8417ae72337cc8c2f125196aaa6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` padding[2] Padding in each spatial dimension. padding[0] is a padding in the beginning (``padding_l``), padding[1] is a padding in the end (``padding_r``). .. index:: pair: variable; accum_data_type .. _doxid-structdnnl__convolution__desc__t_1a09ca2f54dc7a24ab71ab3e178f519dcd: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_data_type_t` accum_data_type The accumulator data type. Initialized automatically.