.. index:: pair: struct; dnnl::resampling_forward::desc .. _doxid-structdnnl_1_1resampling__forward_1_1desc: struct dnnl::resampling_forward::desc ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for resampling forward propagation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_resampling_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`& dst_desc ); :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const std::vector& factors, const :ref:`memory::desc`& src_desc ); :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const std::vector& factors, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& dst_desc ); }; .. _details-structdnnl_1_1resampling__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for resampling forward propagation. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1resampling__forward_1_1desc_1a3e4ba459a390370629921e99dadf3468: .. 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`& dst_desc ) Constructs a descriptor for a resampling forward propagation primitive using source and destination memory descriptors. .. note:: Destination memory descriptor may be initialized with :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. .. 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 - resampling algorithm kind: either :ref:`dnnl::algorithm::resampling_nearest `, or :ref:`dnnl::algorithm::resampling_linear ` * - src_desc - Source memory descriptor. * - dst_desc - Destination memory descriptor. .. index:: pair: function; desc .. _doxid-structdnnl_1_1resampling__forward_1_1desc_1a470b216f4b325eb45c4d2bcfbe503125: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const std::vector& factors, const :ref:`memory::desc`& src_desc ) Constructs a descriptor for a resampling forward propagation primitive using source memory descriptor and factors. .. 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 - resampling algorithm kind: either :ref:`dnnl::algorithm::resampling_nearest `, or :ref:`dnnl::algorithm::resampling_linear ` * - factors - Vector of scaling factors for spatial dimension. * - src_desc - Source memory descriptor. .. index:: pair: function; desc .. _doxid-structdnnl_1_1resampling__forward_1_1desc_1aaef30e659aa7dccaaf51bf0569a3cde6: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const std::vector& factors, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& dst_desc ) Constructs a descriptor for a resampling forward propagation primitive. .. note:: The destination memory descriptor may be initialized with :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. .. 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 - resampling algorithm kind: either :ref:`dnnl::algorithm::resampling_nearest `, or :ref:`dnnl::algorithm::resampling_linear ` * - factors - Vector of scaling factors for spatial dimension. * - src_desc - Source memory descriptor. * - dst_desc - Destination memory descriptor.