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

A memory primitive descriptor. More...

#include <mkldnn.hpp>

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

Public Member Functions

 primitive_desc ()
 
 primitive_desc (const desc &adesc, const engine &aengine)
 Constructs a memory primitive descriptor. More...
 
memory::desc desc ()
 Returns the memory primitive descriptor. More...
 
size_t get_size () const
 Returns the number of bytes required to allocate the memory described including the padding area. More...
 
bool operator== (const primitive_desc &other) const
 
bool operator!= (const primitive_desc &other) const
 
engine get_engine ()
 
- 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...
 

Friends

struct memory
 

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 memory primitive descriptor.

Constructor & Destructor Documentation

◆ primitive_desc() [1/2]

mkldnn::memory::primitive_desc::primitive_desc ( )
inline

◆ primitive_desc() [2/2]

mkldnn::memory::primitive_desc::primitive_desc ( const desc adesc,
const engine aengine 
)
inline

Constructs a memory primitive descriptor.

Member Function Documentation

◆ desc()

memory::desc mkldnn::memory::primitive_desc::desc ( )
inline

Returns the memory primitive descriptor.

◆ get_size()

size_t mkldnn::memory::primitive_desc::get_size ( ) const
inline

Returns the number of bytes required to allocate the memory described including the padding area.

◆ operator==()

bool mkldnn::memory::primitive_desc::operator== ( const primitive_desc other) const
inline

◆ operator!=()

bool mkldnn::memory::primitive_desc::operator!= ( const primitive_desc other) const
inline

◆ get_engine()

engine mkldnn::memory::primitive_desc::get_engine ( )
inline

Friends And Related Function Documentation

◆ memory

friend struct memory
friend

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