.. index:: pair: struct; dnnl::deconvolution_forward::desc .. _doxid-structdnnl_1_1deconvolution__forward_1_1desc: struct dnnl::deconvolution_forward::desc ======================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for a deconvolution forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_deconvolution_desc_t` :target:`data`; // construction :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ); :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ); :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& dilates, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ); :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& dilates, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ); }; .. _details-structdnnl_1_1deconvolution__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for a deconvolution forward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1deconvolution__forward_1_1desc_1a4e4f697cf31149979bc42d84ef0bcac0: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ) Constructs a descriptor for a deconvolution forward propagation primitive with bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. Arrays ``strides``, ``padding_l``, and ``padding_r`` contain values for spatial dimensions only and hence must have the same number of elements as there are spatial dimensions. The order of values is the same as in the tensor: depth (for 3D tensors), height (for 3D and 2D tensors), and width. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aprop_kind - Propagation kind. Possible values are :ref:`dnnl::prop_kind::forward_training `, and :ref:`dnnl::prop_kind::forward_inference `. * - aalgorithm - Deconvolution algorithm: :ref:`dnnl::algorithm::deconvolution_direct `, and :ref:`dnnl::algorithm::deconvolution_winograd `. * - src_desc - Source memory descriptor. * - weights_desc - Weights memory descriptor. * - bias_desc - Bias memory descriptor. Passing zero memory descriptor disables the bias term. * - dst_desc - Destination memory descriptor. * - strides - Vector of strides for spatial dimension. * - padding_l - Vector of padding values for low indices for each spatial dimension ``([[front,] top,] left)``. * - padding_r - Vector of padding values for high indices for each spatial dimension ``([[back,] bottom,] right)``. .. index:: pair: function; desc .. _doxid-structdnnl_1_1deconvolution__forward_1_1desc_1a452539d5aba55cad9c4d20223ed20791: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ) Constructs a descriptor for a deconvolution forward propagation primitive without bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. Arrays ``strides``, ``padding_l``, and ``padding_r`` contain values for spatial dimensions only and hence must have the same number of elements as there are spatial dimensions. The order of values is the same as in the tensor: depth (for 3D tensors), height (for 3D and 2D tensors), and width. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aprop_kind - Propagation kind. Possible values are :ref:`dnnl::prop_kind::forward_training `, and :ref:`dnnl::prop_kind::forward_inference `. * - aalgorithm - Deconvolution algorithm: :ref:`dnnl::algorithm::deconvolution_direct `, and :ref:`dnnl::algorithm::deconvolution_winograd `. * - src_desc - Source memory descriptor. * - weights_desc - Weights memory descriptor. * - dst_desc - Destination memory descriptor. * - strides - Vector of strides for spatial dimension. * - padding_l - Vector of padding values for low indices for each spatial dimension ``([[front,] top,] left)``. * - padding_r - Vector of padding values for high indices for each spatial dimension ``([[back,] bottom,] right)``. .. index:: pair: function; desc .. _doxid-structdnnl_1_1deconvolution__forward_1_1desc_1a34d9b59fc932bc35a9baad33edc5fbd6: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& dilates, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ) Constructs a descriptor for a dilated deconvolution forward propagation primitive with bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. Arrays ``strides``, ``dilates``, ``padding_l``, and ``padding_r`` contain values for spatial dimensions only and hence must have the same number of elements as there are spatial dimensions. The order of values is the same as in the tensor: depth (for 3D tensors), height (for 3D and 2D tensors), and width. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aprop_kind - Propagation kind. Possible values are :ref:`dnnl::prop_kind::forward_training `, and :ref:`dnnl::prop_kind::forward_inference `. * - aalgorithm - Deconvolution algorithm: :ref:`dnnl::algorithm::deconvolution_direct `, and :ref:`dnnl::algorithm::deconvolution_winograd `. * - src_desc - Source memory descriptor. * - weights_desc - Weights memory descriptor. * - bias_desc - Bias memory descriptor. Passing zero memory descriptor disables the bias term. * - dst_desc - Destination memory descriptor. * - strides - Vector of strides for spatial dimension. * - dilates - Dilations for each spatial dimension. A zero value means no dilation in the corresponding dimension. * - padding_l - Vector of padding values for low indices for each spatial dimension ``([[front,] top,] left)``. * - padding_r - Vector of padding values for high indices for each spatial dimension ``([[back,] bottom,] right)``. .. index:: pair: function; desc .. _doxid-structdnnl_1_1deconvolution__forward_1_1desc_1a5fe3322e1e2f975f5c7d76eb1fc3cef5: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& dilates, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ) Constructs a descriptor for a dilated deconvolution forward propagation primitive without bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. Arrays ``strides``, ``dilates``, ``padding_l``, and ``padding_r`` contain values for spatial dimensions only and hence must have the same number of elements as there are spatial dimensions. The order of values is the same as in the tensor: depth (for 3D tensors), height (for 3D and 2D tensors), and width. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aprop_kind - Propagation kind. Possible values are :ref:`dnnl::prop_kind::forward_training `, and :ref:`dnnl::prop_kind::forward_inference `. * - aalgorithm - Deconvolution algorithm: :ref:`dnnl::algorithm::deconvolution_direct `, and :ref:`dnnl::algorithm::deconvolution_winograd `. * - src_desc - Source memory descriptor. * - weights_desc - Weights memory descriptor. * - dst_desc - Destination memory descriptor. * - strides - Vector of strides for spatial dimension. * - dilates - Dilations for each spatial dimension. A zero value means no dilation in the corresponding dimension. * - padding_l - Vector of padding values for low indices for each spatial dimension ``([[front,] top,] left)``. * - padding_r - Vector of padding values for high indices for each spatial dimension ``([[back,] bottom,] right)``.