Deep Neural Network Library (DNNL)  1.1.3
Performance library for Deep Learning
Public Member Functions | List of all members
dnnl::convolution_backward_weights::primitive_desc Struct Reference

Primitive descriptor for convolution weight update. More...

#include <dnnl.hpp>

Inheritance diagram for dnnl::convolution_backward_weights::primitive_desc:
Inheritance graph
[legend]
Collaboration diagram for dnnl::convolution_backward_weights::primitive_desc:
Collaboration graph
[legend]

Public Member Functions

 primitive_desc (const desc &desc, const engine &e, const convolution_forward::primitive_desc &hint_fwd_pd, bool allow_empty=false)
 Initializes a primitive descriptor for convolution weight update.
 
 primitive_desc (const desc &desc, const primitive_attr &attr, const engine &e, const convolution_forward::primitive_desc &hint_fwd_pd, bool allow_empty=false)
 Initializes a primitive descriptor for convolution weight update with attributes defined by attr. More...
 
 primitive_desc (dnnl_primitive_desc_t pd)
 Initializes a primitive descriptor for convolution weights update from a C primitive descriptor pd. More...
 
memory::desc src_desc () const
 Queries source memory descriptor.
 
memory::desc diff_weights_desc () const
 Queries diff weights memory descriptor.
 
memory::desc diff_bias_desc () const
 Queries diff bias memory descriptor.
 
memory::desc diff_dst_desc () const
 Queries diff destination memory descriptor.
 
- Public Member Functions inherited from dnnl::primitive_desc
 primitive_desc (const_dnnl_op_desc_t desc, const primitive_attr *attr, const engine &e, const_dnnl_primitive_desc_t hint_fwd_pd, bool allow_empty=false)
 Creates a primitive descriptor from given op_desc, attr, engine, and optionally a hint primitive descriptor from forward propagation. More...
 
bool next_impl ()
 Advances the next implementation for the given op descriptor. More...
 
 primitive_desc_base (dnnl_primitive_desc_t pd, dnnl::primitive::kind prim_kind, dnnl::prop_kind prop_kind1, dnnl::prop_kind prop_kind2)
 Constructs a primitive_desc from a C counterpart. More...
 
- Public Member Functions inherited from dnnl::primitive_desc_base
engine get_engine () const
 Returns the engine of the primitive descriptor.
 
const char * impl_info_str () const
 Returns implementation name.
 
memory::dim query_s64 (query q) const
 Queries the memory::dim value (same as int64_t).
 
memory::desc query_md (query what, int idx=0) const
 Queries and returns requested memory descriptor.
 
memory::desc scratchpad_desc () const
 Queries scratchpad memory descriptor. More...
 
engine scratchpad_engine () const
 Returns the engine that owns the scratchpad memory.
 
primitive_attr get_primitive_attr () const
 Returns the attributes.
 
- Public Member Functions inherited from dnnl::handle< dnnl_primitive_desc_t >
 handle ()=default
 Empty constructor. More...
 
 handle (dnnl_primitive_desc_t t, bool weak=false)
 Constructs a C handle wrapper from a C handle. More...
 
void reset (dnnl_primitive_desc_t t, bool weak=false)
 Resets the value of a C handle. More...
 
dnnl_primitive_desc_t get (bool allow_emtpy=false) const
 Returns the value of the underlying C handle.
 

Additional Inherited Members

- Protected Member Functions inherited from dnnl::primitive_desc_base
 primitive_desc_base (dnnl_primitive_desc_t pd, dnnl::primitive::kind prim_kind, dnnl::prop_kind prop_kind1, dnnl::prop_kind prop_kind2)
 Constructs a primitive_desc from a C counterpart. More...
 

Detailed Description

Primitive descriptor for convolution weight update.

Examples:
cnn_training_f32.cpp, and cpu_cnn_training_bf16.cpp.

Constructor & Destructor Documentation

◆ primitive_desc() [1/2]

dnnl::convolution_backward_weights::primitive_desc::primitive_desc ( const desc desc,
const primitive_attr attr,
const engine e,
const convolution_forward::primitive_desc hint_fwd_pd,
bool  allow_empty = false 
)
inline

Initializes a primitive descriptor for convolution weight update with attributes defined by attr.

◆ primitive_desc() [2/2]

dnnl::convolution_backward_weights::primitive_desc::primitive_desc ( dnnl_primitive_desc_t  pd)
inline

Initializes a primitive descriptor for convolution weights update from a C primitive descriptor pd.


The documentation for this struct was generated from the following file: