Intel(R) Math Kernel Library for Deep Neural Networks (Intel(R) MKL-DNN)  0.21.0
Performance library for Deep Learning
Public Member Functions | List of all members
mkldnn::primitive_desc Struct Reference

A base class for all primitive descriptors. More...

#include <mkldnn.hpp>

Inheritance diagram for mkldnn::primitive_desc:
Inheritance graph
[legend]
Collaboration diagram for mkldnn::primitive_desc:
Collaboration graph
[legend]

Public Member Functions

 primitive_desc (const_mkldnn_op_desc_t desc, const primitive_attr *attr, const engine &e, const_mkldnn_primitive_desc_t hint_fwd_pd)
 
engine get_engine ()
 
primitive_attr get_primitive_attr () const
 
const char * impl_info_str () const
 Returns implementation name. More...
 
bool next_impl ()
 Advances the next implementation for the given op descriptor. More...
 
memory::primitive_desc query_mpd (query what, int idx=0) const
 Queries and returns requested memory primitive descriptor. More...
 
- Public Member Functions inherited from mkldnn::handle< mkldnn_primitive_desc_t >
 handle (mkldnn_primitive_desc_t t=0, bool weak=false)
 Constructs a C handle wrapper. More...
 
 handle (const handle &other)
 
handleoperator= (const handle &other)
 
bool operator== (const handle &other) const
 
bool operator!= (const handle &other) const
 
void reset (mkldnn_primitive_desc_t t, bool weak=false)
 Resets the value of a C handle. More...
 
mkldnn_primitive_desc_t get () const
 Returns the value of the underlying C handle. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mkldnn::handle< mkldnn_primitive_desc_t >
bool operator== (const mkldnn_primitive_desc_t other) const
 
bool operator!= (const mkldnn_primitive_desc_t other) const
 

Detailed Description

A base class for all primitive descriptors.

Constructor & Destructor Documentation

◆ primitive_desc()

mkldnn::primitive_desc::primitive_desc ( const_mkldnn_op_desc_t  desc,
const primitive_attr attr,
const engine e,
const_mkldnn_primitive_desc_t  hint_fwd_pd 
)
inline

Member Function Documentation

◆ get_engine()

engine mkldnn::primitive_desc::get_engine ( )
inline

◆ get_primitive_attr()

primitive_attr mkldnn::primitive_desc::get_primitive_attr ( ) const
inline

◆ impl_info_str()

const char* mkldnn::primitive_desc::impl_info_str ( ) const
inline

Returns implementation name.

◆ next_impl()

bool mkldnn::primitive_desc::next_impl ( )
inline

Advances the next implementation for the given op descriptor.

Returns:

  • true on success
  • false if the last implementation reached, and the primitive descriptor itself is kept unchanged

◆ query_mpd()

memory::primitive_desc mkldnn::primitive_desc::query_mpd ( query  what,
int  idx = 0 
) const
inline

Queries and returns requested memory primitive descriptor.


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