Intel(R) Math Kernel Library for Deep Neural Networks (Intel(R) MKL-DNN)  0.95.0
Performance library for Deep Learning
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
mkldnn::memory Struct Reference

Memory that describes the data. More...

#include <mkldnn.hpp>

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

Classes

struct  desc
 A memory descriptor. More...
 

Public Types

enum  data_type {
  data_type::undef = mkldnn_data_type_undef, data_type::f16 = mkldnn_f16, data_type::f32 = mkldnn_f32, data_type::s32 = mkldnn_s32,
  data_type::s8 = mkldnn_s8, data_type::u8 = mkldnn_u8
}
 Data type specification. See mkldnn_data_type_t for a detailed description. More...
 
enum  format_tag {
  format_tag::undef = mkldnn_format_tag_undef, format_tag::any = mkldnn_format_tag_any, format_tag::a = mkldnn_a, format_tag::ab = mkldnn_ab,
  format_tag::abc = mkldnn_abc, format_tag::abcd = mkldnn_abcd, format_tag::abcde = mkldnn_abcde, format_tag::abcdef = mkldnn_abcdef,
  format_tag::abdec = mkldnn_abdec, format_tag::acb = mkldnn_acb, format_tag::acbde = mkldnn_acbde, format_tag::acdb = mkldnn_acdb,
  format_tag::acdeb = mkldnn_acdeb, format_tag::ba = mkldnn_ba, format_tag::bac = mkldnn_bac, format_tag::bacd = mkldnn_bacd,
  format_tag::bcda = mkldnn_bcda, format_tag::cba = mkldnn_cba, format_tag::cdba = mkldnn_cdba, format_tag::cdeba = mkldnn_cdeba,
  format_tag::decab = mkldnn_decab, format_tag::Abc16a = mkldnn_Abc16a, format_tag::ABc16a16b = mkldnn_ABc16a16b, format_tag::aBc16b = mkldnn_aBc16b,
  format_tag::ABc16b16a = mkldnn_ABc16b16a, format_tag::Abc4a = mkldnn_Abc4a, format_tag::aBc4b = mkldnn_aBc4b, format_tag::ABc4b16a4b = mkldnn_ABc4b16a4b,
  format_tag::ABc4b4a = mkldnn_ABc4b4a, format_tag::ABc8a16b2a = mkldnn_ABc8a16b2a, format_tag::ABc8a8b = mkldnn_ABc8a8b, format_tag::aBc8b = mkldnn_aBc8b,
  format_tag::ABc8b16a2b = mkldnn_ABc8b16a2b, format_tag::ABc8b8a = mkldnn_ABc8b8a, format_tag::Abcd16a = mkldnn_Abcd16a, format_tag::ABcd16a16b = mkldnn_ABcd16a16b,
  format_tag::aBcd16b = mkldnn_aBcd16b, format_tag::ABcd16b16a = mkldnn_ABcd16b16a, format_tag::aBCd16b16c = mkldnn_aBCd16b16c, format_tag::aBCd16c16b = mkldnn_aBCd16c16b,
  format_tag::Abcd4a = mkldnn_Abcd4a, format_tag::aBcd4b = mkldnn_aBcd4b, format_tag::ABcd4b16a4b = mkldnn_ABcd4b16a4b, format_tag::ABcd4b4a = mkldnn_ABcd4b4a,
  format_tag::aBCd4c16b4c = mkldnn_aBCd4c16b4c, format_tag::aBCd4c4b = mkldnn_aBCd4c4b, format_tag::ABcd8a16b2a = mkldnn_ABcd8a16b2a, format_tag::ABcd8a8b = mkldnn_ABcd8a8b,
  format_tag::aBcd8b = mkldnn_aBcd8b, format_tag::ABcd8b16a2b = mkldnn_ABcd8b16a2b, format_tag::aBCd8b16c2b = mkldnn_aBCd8b16c2b, format_tag::ABcd8b8a = mkldnn_ABcd8b8a,
  format_tag::aBCd8b8c = mkldnn_aBCd8b8c, format_tag::aBCd8c16b2c = mkldnn_aBCd8c16b2c, format_tag::aBCd8c8b = mkldnn_aBCd8c8b, format_tag::Abcde16a = mkldnn_Abcde16a,
  format_tag::ABcde16a16b = mkldnn_ABcde16a16b, format_tag::aBcde16b = mkldnn_aBcde16b, format_tag::ABcde16b16a = mkldnn_ABcde16b16a, format_tag::aBCde16b16c = mkldnn_aBCde16b16c,
  format_tag::aBCde16c16b = mkldnn_aBCde16c16b, format_tag::aBCde2c8b4c = mkldnn_aBCde2c8b4c, format_tag::Abcde4a = mkldnn_Abcde4a, format_tag::aBcde4b = mkldnn_aBcde4b,
  format_tag::ABcde4b4a = mkldnn_ABcde4b4a, format_tag::aBCde4b4c = mkldnn_aBCde4b4c, format_tag::aBCde4c16b4c = mkldnn_aBCde4c16b4c, format_tag::aBCde4c4b = mkldnn_aBCde4c4b,
  format_tag::Abcde8a = mkldnn_Abcde8a, format_tag::ABcde8a8b = mkldnn_ABcde8a8b, format_tag::aBcde8b = mkldnn_aBcde8b, format_tag::ABcde8b16a2b = mkldnn_ABcde8b16a2b,
  format_tag::aBCde8b16c2b = mkldnn_aBCde8b16c2b, format_tag::ABcde8b8a = mkldnn_ABcde8b8a, format_tag::aBCde8b8c = mkldnn_aBCde8b8c, format_tag::ABcd4a8b8a4b = mkldnn_ABcd4a8b8a4b,
  format_tag::ABcd2a8b8a2b = mkldnn_ABcd2a8b8a2b, format_tag::aBCde4b8c8b4c = mkldnn_aBCde4b8c8b4c, format_tag::aBCde2b8c8b2c = mkldnn_aBCde2b8c8b2c, format_tag::aBCde8c16b2c = mkldnn_aBCde8c16b2c,
  format_tag::aBCde8c8b = mkldnn_aBCde8c8b, format_tag::aBcdef16b = mkldnn_aBcdef16b, format_tag::aBCdef16b16c = mkldnn_aBCdef16b16c, format_tag::aBCdef16c16b = mkldnn_aBCdef16c16b,
  format_tag::aBcdef4b = mkldnn_aBcdef4b, format_tag::aBCdef4c4b = mkldnn_aBCdef4c4b, format_tag::aBCdef8b8c = mkldnn_aBCdef8b8c, format_tag::aBCdef8c16b2c = mkldnn_aBCdef8c16b2c,
  format_tag::aBCdef8c8b = mkldnn_aBCdef8c8b, format_tag::aBdc16b = mkldnn_aBdc16b, format_tag::aBdc4b = mkldnn_aBdc4b, format_tag::aBdc8b = mkldnn_aBdc8b,
  format_tag::aBdec16b = mkldnn_aBdec16b, format_tag::aBdec4b = mkldnn_aBdec4b, format_tag::aBdec8b = mkldnn_aBdec8b, format_tag::aBdefc16b = mkldnn_aBdefc16b,
  format_tag::aCBdef16c16b = mkldnn_aCBdef16c16b, format_tag::aBdefc4b = mkldnn_aBdefc4b, format_tag::aBdefc8b = mkldnn_aBdefc8b, format_tag::Acb16a = mkldnn_Acb16a,
  format_tag::Acb4a = mkldnn_Acb4a, format_tag::Acb8a = mkldnn_Acb8a, format_tag::aCBd16b16c = mkldnn_aCBd16b16c, format_tag::aCBde16b16c = mkldnn_aCBde16b16c,
  format_tag::aCBde16c16b = mkldnn_aCBde16c16b, format_tag::Acdb16a = mkldnn_Acdb16a, format_tag::Acdb4a = mkldnn_Acdb4a, format_tag::Acdb8a = mkldnn_Acdb8a,
  format_tag::Acdeb16a = mkldnn_Acdeb16a, format_tag::Acdeb4a = mkldnn_Acdeb4a, format_tag::Acdeb8a = mkldnn_Acdeb8a, format_tag::BAc16a16b = mkldnn_BAc16a16b,
  format_tag::BAcd16a16b = mkldnn_BAcd16a16b, format_tag::BAcd16b16a = mkldnn_BAcd16b16a, format_tag::ABcd32a32b = mkldnn_ABcd32a32b, format_tag::BAcde16b16 = mkldnn_BAcde16b16a,
  format_tag::aBdec32b = mkldnn_aBdec32b, format_tag::Abcdef16a = mkldnn_Abcdef16a, format_tag::aCBde16c16 = mkldnn_aCBde16c16b, format_tag::Acdb32a = mkldnn_Acdb32a,
  format_tag::format_tag_last = mkldnn_format_tag_last, format_tag::x = mkldnn_x, format_tag::nc = mkldnn_nc, format_tag::cn = mkldnn_cn,
  format_tag::ncw = mkldnn_ncw, format_tag::nwc = mkldnn_nwc, format_tag::nchw = mkldnn_nchw, format_tag::nhwc = mkldnn_nhwc,
  format_tag::chwn = mkldnn_chwn, format_tag::ncdhw = mkldnn_ncdhw, format_tag::ndhwc = mkldnn_ndhwc, format_tag::oi = mkldnn_oi,
  format_tag::io = mkldnn_io, format_tag::oiw = mkldnn_oiw, format_tag::wio = mkldnn_wio, format_tag::oihw = mkldnn_oihw,
  format_tag::hwio = mkldnn_hwio, format_tag::ihwo = mkldnn_ihwo, format_tag::iohw = mkldnn_iohw, format_tag::oidhw = mkldnn_oidhw,
  format_tag::dhwio = mkldnn_dhwio, format_tag::goiw = mkldnn_goiw, format_tag::goihw = mkldnn_goihw, format_tag::hwigo = mkldnn_hwigo,
  format_tag::giohw = mkldnn_giohw, format_tag::goidhw = mkldnn_goidhw, format_tag::tnc = mkldnn_tnc, format_tag::ntc = mkldnn_ntc,
  format_tag::ldsnc = mkldnn_ldsnc, format_tag::ldigo = mkldnn_ldigo, format_tag::ldgoi = mkldnn_ldgoi, format_tag::ldgo = mkldnn_ldgo,
  format_tag::nCdhw16c = mkldnn_nCdhw16c, format_tag::nCdhw4c = mkldnn_nCdhw4c, format_tag::nCdhw8c = mkldnn_nCdhw8c, format_tag::nChw16c = mkldnn_nChw16c,
  format_tag::nChw4c = mkldnn_nChw4c, format_tag::nChw8c = mkldnn_nChw8c, format_tag::nCw16c = mkldnn_nCw16c, format_tag::nCw4c = mkldnn_nCw4c,
  format_tag::nCw8c = mkldnn_nCw8c, format_tag::NChw16n16c = mkldnn_NChw16n16c, format_tag::NCdhw16n16c = mkldnn_NCdhw16n16c, format_tag::NChw32n32c = mkldnn_NChw32n32c,
  format_tag::IOhw16i16o = mkldnn_IOhw16i16o, format_tag::Ohwi32o = mkldnn_Ohwi32o, format_tag::IOdhw16i16o = mkldnn_IOdhw16i16o, format_tag::gIOhw16i16o = mkldnn_gIOhw16i16o,
  format_tag::gOhwi32o = mkldnn_gOhwi32o, format_tag::Goidhw16g = mkldnn_Goidhw16g, format_tag::IOw16o16i = mkldnn_IOw16o16i, format_tag::OIw16i16o = mkldnn_OIw16i16o,
  format_tag::OIw16o16i = mkldnn_OIw16o16i, format_tag::Oiw16o = mkldnn_Oiw16o, format_tag::OIw4i16o4i = mkldnn_OIw4i16o4i, format_tag::OIw4i4o = mkldnn_OIw4i4o,
  format_tag::Oiw4o = mkldnn_Oiw4o, format_tag::OIw8i16o2i = mkldnn_OIw8i16o2i, format_tag::OIw8i8o = mkldnn_OIw8i8o, format_tag::OIw8o16i2o = mkldnn_OIw8o16i2o,
  format_tag::OIw8o8i = mkldnn_OIw8o8i, format_tag::Owi16o = mkldnn_Owi16o, format_tag::Owi4o = mkldnn_Owi4o, format_tag::Owi8o = mkldnn_Owi8o,
  format_tag::IOhw16o16i = mkldnn_IOhw16o16i, format_tag::Ohwi16o = mkldnn_Ohwi16o, format_tag::Ohwi4o = mkldnn_Ohwi4o, format_tag::Ohwi8o = mkldnn_Ohwi8o,
  format_tag::OIhw16i16o = mkldnn_OIhw16i16o, format_tag::OIhw16o16i = mkldnn_OIhw16o16i, format_tag::Oihw16o = mkldnn_Oihw16o, format_tag::OIhw4i16o4i = mkldnn_OIhw4i16o4i,
  format_tag::OIhw4i4o = mkldnn_OIhw4i4o, format_tag::Oihw4o = mkldnn_Oihw4o, format_tag::OIhw8i16o2i = mkldnn_OIhw8i16o2i, format_tag::OIhw8i8o = mkldnn_OIhw8i8o,
  format_tag::OIhw8o16i2o = mkldnn_OIhw8o16i2o, format_tag::OIhw8o8i = mkldnn_OIhw8o8i, format_tag::Odhwi16o = mkldnn_Odhwi16o, format_tag::Odhwi4o = mkldnn_Odhwi4o,
  format_tag::Odhwi8o = mkldnn_Odhwi8o, format_tag::OIdhw16i16o = mkldnn_OIdhw16i16o, format_tag::OIdhw16o16i = mkldnn_OIdhw16o16i, format_tag::Oidhw16o = mkldnn_Oidhw16o,
  format_tag::OIdhw4i4o = mkldnn_OIdhw4i4o, format_tag::Oidhw4o = mkldnn_Oidhw4o, format_tag::OIdhw8i16o2i = mkldnn_OIdhw8i16o2i, format_tag::OIdhw8i8o = mkldnn_OIdhw8i8o,
  format_tag::OIdhw8o8i = mkldnn_OIdhw8o8i, format_tag::gIOw16o16i = mkldnn_gIOw16o16i, format_tag::gOIw16i16o = mkldnn_gOIw16i16o, format_tag::gOIw16o16i = mkldnn_gOIw16o16i,
  format_tag::gOiw16o = mkldnn_gOiw16o, format_tag::gOIw4i16o4i = mkldnn_gOIw4i16o4i, format_tag::gOIw4i4o = mkldnn_gOIw4i4o, format_tag::gOiw4o = mkldnn_gOiw4o,
  format_tag::gOIw8i16o2i = mkldnn_gOIw8i16o2i, format_tag::gOIw8i8o = mkldnn_gOIw8i8o, format_tag::gOIw8o16i2o = mkldnn_gOIw8o16i2o, format_tag::gOIw8o8i = mkldnn_gOIw8o8i,
  format_tag::gOwi16o = mkldnn_gOwi16o, format_tag::gOwi4o = mkldnn_gOwi4o, format_tag::gOwi8o = mkldnn_gOwi8o, format_tag::gIOhw16o16i = mkldnn_gIOhw16o16i,
  format_tag::gOhwi16o = mkldnn_gOhwi16o, format_tag::gOhwi4o = mkldnn_gOhwi4o, format_tag::gOhwi8o = mkldnn_gOhwi8o, format_tag::Goihw16g = mkldnn_Goihw16g,
  format_tag::gOIhw16i16o = mkldnn_gOIhw16i16o, format_tag::gOIhw16o16i = mkldnn_gOIhw16o16i, format_tag::gOihw16o = mkldnn_gOihw16o, format_tag::gOIhw2i8o4i = mkldnn_gOIhw2i8o4i,
  format_tag::gOIhw4i16o4i = mkldnn_gOIhw4i16o4i, format_tag::gOIhw4i4o = mkldnn_gOIhw4i4o, format_tag::gOIhw4o4i = mkldnn_gOIhw4o4i, format_tag::gOihw4o = mkldnn_gOihw4o,
  format_tag::Goihw8g = mkldnn_Goihw8g, format_tag::gOIhw8i16o2i = mkldnn_gOIhw8i16o2i, format_tag::gOIhw8i8o = mkldnn_gOIhw8i8o, format_tag::gOIhw8o16i2o = mkldnn_gOIhw8o16i2o,
  format_tag::OIhw4o8i8o4i = mkldnn_OIhw4o8i8o4i, format_tag::OIhw2o8i8o2i = mkldnn_OIhw2o8i8o2i, format_tag::gOIhw4o8i8o4i = mkldnn_gOIhw4o8i8o4i, format_tag::gOIhw2o8i8o2i = mkldnn_gOIhw2o8i8o2i,
  format_tag::gOIhw8o8i = mkldnn_gOIhw8o8i, format_tag::gIOdhw16i16o = mkldnn_gIOdhw16i16o, format_tag::gOdhwi16o = mkldnn_gOdhwi16o, format_tag::gOdhwi4o = mkldnn_gOdhwi4o,
  format_tag::gOdhwi8o = mkldnn_gOdhwi8o, format_tag::gOIdhw16i16o = mkldnn_gOIdhw16i16o, format_tag::gOIdhw16o16i = mkldnn_gOIdhw16o16i, format_tag::gOidhw16o = mkldnn_gOidhw16o,
  format_tag::gOIdhw4i4o = mkldnn_gOIdhw4i4o, format_tag::gOidhw4o = mkldnn_gOidhw4o, format_tag::gOIdhw8i16o2i = mkldnn_gOIdhw8i16o2i, format_tag::gOIdhw8i8o = mkldnn_gOIdhw8i8o,
  format_tag::gOIdhw8o8i = mkldnn_gOIdhw8o8i
}
 Memory format tag specification. See mkldnn_format_tag_t for a detailed description. More...
 
typedef mkldnn_dim_t dim
 
typedef std::vector< dimdims
 

Public Member Functions

 memory (const desc &md, const engine &aengine, void *ahandle)
 Constructs a memory. More...
 
 memory (const desc &md, const engine &aengine)
 Constructs a memory. More...
 
desc get_desc () const
 Returns the descriptor of the memory. More...
 
engine get_engine () const
 Returns the engine of the memory. More...
 
void * get_data_handle () const
 Returns a handle of the data contained in the memory. More...
 
void set_data_handle (void *handle) const
 
template<typename T = void>
T * map_data () const
 Maps the data of the memory. More...
 
void unmap_data (void *mapped_ptr) const
 Unmaps the previously mapped data for the memory. More...
 
- Public Member Functions inherited from mkldnn::handle< mkldnn_memory_t >
 handle (mkldnn_memory_tt=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_memory_tt, bool weak=false)
 Resets the value of a C handle. More...
 
mkldnn_memory_t get () const
 Returns the value of the underlying C handle. More...
 

Static Public Member Functions

template<typename T >
static void validate_dims (const std::vector< T > &v)
 
static mkldnn_data_type_t convert_to_c (data_type adata_type)
 
static mkldnn_format_tag_t convert_to_c (format_tag aformat)
 

Additional Inherited Members

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

Detailed Description

Memory that describes the data.

Member Typedef Documentation

typedef std::vector<dim> mkldnn::memory::dims

Member Enumeration Documentation

Data type specification. See mkldnn_data_type_t for a detailed description.

Enumerator
undef 
f16 
f32 
s32 
s8 
u8 

Memory format tag specification. See mkldnn_format_tag_t for a detailed description.

Enumerator
undef 
any 
a 
ab 
abc 
abcd 
abcde 
abcdef 
abdec 
acb 
acbde 
acdb 
acdeb 
ba 
bac 
bacd 
bcda 
cba 
cdba 
cdeba 
decab 
Abc16a 
ABc16a16b 
aBc16b 
ABc16b16a 
Abc4a 
aBc4b 
ABc4b16a4b 
ABc4b4a 
ABc8a16b2a 
ABc8a8b 
aBc8b 
ABc8b16a2b 
ABc8b8a 
Abcd16a 
ABcd16a16b 
aBcd16b 
ABcd16b16a 
aBCd16b16c 
aBCd16c16b 
Abcd4a 
aBcd4b 
ABcd4b16a4b 
ABcd4b4a 
aBCd4c16b4c 
aBCd4c4b 
ABcd8a16b2a 
ABcd8a8b 
aBcd8b 
ABcd8b16a2b 
aBCd8b16c2b 
ABcd8b8a 
aBCd8b8c 
aBCd8c16b2c 
aBCd8c8b 
Abcde16a 
ABcde16a16b 
aBcde16b 
ABcde16b16a 
aBCde16b16c 
aBCde16c16b 
aBCde2c8b4c 
Abcde4a 
aBcde4b 
ABcde4b4a 
aBCde4b4c 
aBCde4c16b4c 
aBCde4c4b 
Abcde8a 
ABcde8a8b 
aBcde8b 
ABcde8b16a2b 
aBCde8b16c2b 
ABcde8b8a 
aBCde8b8c 
ABcd4a8b8a4b 
ABcd2a8b8a2b 
aBCde4b8c8b4c 
aBCde2b8c8b2c 
aBCde8c16b2c 
aBCde8c8b 
aBcdef16b 
aBCdef16b16c 
aBCdef16c16b 
aBcdef4b 
aBCdef4c4b 
aBCdef8b8c 
aBCdef8c16b2c 
aBCdef8c8b 
aBdc16b 
aBdc4b 
aBdc8b 
aBdec16b 
aBdec4b 
aBdec8b 
aBdefc16b 
aCBdef16c16b 
aBdefc4b 
aBdefc8b 
Acb16a 
Acb4a 
Acb8a 
aCBd16b16c 
aCBde16b16c 
aCBde16c16b 
Acdb16a 
Acdb4a 
Acdb8a 
Acdeb16a 
Acdeb4a 
Acdeb8a 
BAc16a16b 
BAcd16a16b 
BAcd16b16a 
ABcd32a32b 
BAcde16b16 
aBdec32b 
Abcdef16a 
aCBde16c16 
Acdb32a 
format_tag_last 
x 
nc 
cn 
ncw 
nwc 
nchw 
nhwc 
chwn 
ncdhw 
ndhwc 
oi 
io 
oiw 
wio 
oihw 
hwio 
ihwo 
iohw 
oidhw 
dhwio 
goiw 
goihw 
hwigo 
giohw 
goidhw 
tnc 
ntc 
ldsnc 
ldigo 
ldgoi 
ldgo 
nCdhw16c 
nCdhw4c 
nCdhw8c 
nChw16c 
nChw4c 
nChw8c 
nCw16c 
nCw4c 
nCw8c 
NChw16n16c 
NCdhw16n16c 
NChw32n32c 
IOhw16i16o 
Ohwi32o 
IOdhw16i16o 
gIOhw16i16o 
gOhwi32o 
Goidhw16g 
IOw16o16i 
OIw16i16o 
OIw16o16i 
Oiw16o 
OIw4i16o4i 
OIw4i4o 
Oiw4o 
OIw8i16o2i 
OIw8i8o 
OIw8o16i2o 
OIw8o8i 
Owi16o 
Owi4o 
Owi8o 
IOhw16o16i 
Ohwi16o 
Ohwi4o 
Ohwi8o 
OIhw16i16o 
OIhw16o16i 
Oihw16o 
OIhw4i16o4i 
OIhw4i4o 
Oihw4o 
OIhw8i16o2i 
OIhw8i8o 
OIhw8o16i2o 
OIhw8o8i 
Odhwi16o 
Odhwi4o 
Odhwi8o 
OIdhw16i16o 
OIdhw16o16i 
Oidhw16o 
OIdhw4i4o 
Oidhw4o 
OIdhw8i16o2i 
OIdhw8i8o 
OIdhw8o8i 
gIOw16o16i 
gOIw16i16o 
gOIw16o16i 
gOiw16o 
gOIw4i16o4i 
gOIw4i4o 
gOiw4o 
gOIw8i16o2i 
gOIw8i8o 
gOIw8o16i2o 
gOIw8o8i 
gOwi16o 
gOwi4o 
gOwi8o 
gIOhw16o16i 
gOhwi16o 
gOhwi4o 
gOhwi8o 
Goihw16g 
gOIhw16i16o 
gOIhw16o16i 
gOihw16o 
gOIhw2i8o4i 
gOIhw4i16o4i 
gOIhw4i4o 
gOIhw4o4i 
gOihw4o 
Goihw8g 
gOIhw8i16o2i 
gOIhw8i8o 
gOIhw8o16i2o 
OIhw4o8i8o4i 
OIhw2o8i8o2i 
gOIhw4o8i8o4i 
gOIhw2o8i8o2i 
gOIhw8o8i 
gIOdhw16i16o 
gOdhwi16o 
gOdhwi4o 
gOdhwi8o 
gOIdhw16i16o 
gOIdhw16o16i 
gOidhw16o 
gOIdhw4i4o 
gOidhw4o 
gOIdhw8i16o2i 
gOIdhw8i8o 
gOIdhw8o8i 

Constructor & Destructor Documentation

mkldnn::memory::memory ( const desc md,
const engine aengine,
void *  ahandle 
)
inline

Constructs a memory.

Parameters
mdMemory descriptor.
aengineEngine.
ahandlehandle.
mkldnn::memory::memory ( const desc md,
const engine aengine 
)
inline

Constructs a memory.

Parameters
mdMemory descriptor.
aengineEngine.

Member Function Documentation

template<typename T >
static void mkldnn::memory::validate_dims ( const std::vector< T > &  v)
inlinestatic
desc mkldnn::memory::get_desc ( ) const
inline

Returns the descriptor of the memory.

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

Returns the engine of the memory.

void* mkldnn::memory::get_data_handle ( ) const
inline

Returns a handle of the data contained in the memory.

On the CPU engine, this is a pointer to the allocated memory.

void mkldnn::memory::set_data_handle ( void *  handle) const
inline
template<typename T = void>
T* mkldnn::memory::map_data ( ) const
inline

Maps the data of the memory.

Mapping allows to read/write directly from/to the memory contents for backends that do not support direct accessing.

Mapping is an exclusive operation - a memory object cannot be used in other operations until this memory object is unmapped.

Template Parameters
TType of the pointer to be mapped.
void mkldnn::memory::unmap_data ( void *  mapped_ptr) const
inline

Unmaps the previously mapped data for the memory.

Any changes of the mapped data are synchronized back to the memory after the call is complete. The mapped pointer must be obtained through a map_data() call.

static mkldnn_data_type_t mkldnn::memory::convert_to_c ( data_type  adata_type)
inlinestatic
static mkldnn_format_tag_t mkldnn::memory::convert_to_c ( format_tag  aformat)
inlinestatic

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