struct dnnl::convolution_backward_data::primitive_desc

Overview

Primitive descriptor for a convolution backward propagation primitive. More…

#include <dnnl.hpp>

struct primitive_desc: public dnnl::primitive_desc
{
    // methods

    primitive_desc();

    primitive_desc(
        const desc& adesc,
        const engine& aengine,
        const convolution_forward::primitive_desc& hint_fwd_pd,
        bool allow_empty = false
        );

    primitive_desc(
        const desc& adesc,
        const primitive_attr& attr,
        const engine& aengine,
        const convolution_forward::primitive_desc& hint_fwd_pd,
        bool allow_empty = false
        );

    primitive_desc(dnnl_primitive_desc_t pd);
    memory::desc diff_src_desc() const;
    memory::desc weights_desc() const;
    memory::desc diff_dst_desc() const;
};

Inherited Members

public:
    // methods

    handle();
    handle(const handle<T, traits>&);
    handle<T, traits>& operator = (const handle<T, traits>&);
    handle(handle<T, traits>&&);
    handle<T, traits>& operator = (handle<T, traits>&&);
    handle(T t, bool weak = false);
    void reset(T t, bool weak = false);
    T get(bool allow_empty = false) const;
    operator T () const;
    operator bool () const;
    bool operator == (const handle<T, traits>& other) const;
    bool operator != (const handle& other) const;
    primitive_desc_base();
    engine get_engine() const;
    const char* impl_info_str() const;
    memory::dim query_s64(query what) const;
    memory::desc query_md(query what, int idx = 0) const;
    memory::desc src_desc(int idx) const;
    memory::desc dst_desc(int idx) const;
    memory::desc weights_desc(int idx) const;
    memory::desc diff_src_desc(int idx) const;
    memory::desc diff_dst_desc(int idx) const;
    memory::desc diff_weights_desc(int idx) const;
    memory::desc src_desc() const;
    memory::desc dst_desc() const;
    memory::desc weights_desc() const;
    memory::desc diff_src_desc() const;
    memory::desc diff_dst_desc() const;
    memory::desc diff_weights_desc() const;
    memory::desc workspace_desc() const;
    memory::desc scratchpad_desc() const;
    engine scratchpad_engine() const;
    primitive_attr get_primitive_attr() const;
    dnnl::primitive::kind get_kind() const;
    primitive_desc();

    primitive_desc(
        const_dnnl_op_desc_t desc,
        const primitive_attr* attr,
        const engine& aengine,
        const_dnnl_primitive_desc_t hint_fwd_pd,
        bool allow_empty = false
        );

    bool next_impl();

Detailed Documentation

Primitive descriptor for a convolution backward propagation primitive.

Methods

primitive_desc()

Default constructor. Produces an empty object.

primitive_desc(
    const desc& adesc,
    const engine& aengine,
    const convolution_forward::primitive_desc& hint_fwd_pd,
    bool allow_empty = false
    )

Constructs a primitive descriptor for a convolution backward propagation primitive.

Parameters:

adesc

Descriptor for a convolution backward propagation primitive.

aengine

Engine to perform the operation on.

hint_fwd_pd

Primitive descriptor for a convolution forward propagation primitive. It is used as a hint for deciding which memory format to use.

allow_empty

A flag signifying whether construction is allowed to fail without throwing an exception. In this case an empty object will be produced. This flag is optional and defaults to false.

primitive_desc(
    const desc& adesc,
    const primitive_attr& attr,
    const engine& aengine,
    const convolution_forward::primitive_desc& hint_fwd_pd,
    bool allow_empty = false
    )

Constructs a primitive descriptor for a convolution backward propagation primitive.

Parameters:

adesc

Descriptor for a convolution backward propagation primitive.

aengine

Engine to perform the operation on.

attr

Primitive attributes to use.

hint_fwd_pd

Primitive descriptor for a convolution forward propagation primitive. It is used as a hint for deciding which memory format to use.

allow_empty

A flag signifying whether construction is allowed to fail without throwing an exception. In this case an empty object will be produced. This flag is optional and defaults to false.

primitive_desc(dnnl_primitive_desc_t pd)

Constructs a primitive descriptor for a convolution backward propagation primitive from a C API primitive descriptor that must have a matching kind.

Parameters:

pd

C API primitive descriptor for a convolution backward propagation primitive.

memory::desc diff_src_desc() const

Returns a diff source memory descriptor.

Returns:

Diff source memory descriptor.

A zero memory descriptor if the primitive does not have a diff source memory with.

memory::desc weights_desc() const

Returns a weights memory descriptor.

Returns:

Weights memory descriptor.

A zero memory descriptor if the primitive does not have a weights parameter.

memory::desc diff_dst_desc() const

Returns a diff destination memory descriptor.

Returns:

Diff destination memory descriptor.

A zero memory descriptor if the primitive does not have a diff destination parameter.