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

A memory descriptor. More...

#include <mkldnn.hpp>

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

Public Member Functions

 desc (dims adims, data_type adata_type, format aformat)
 Constructs a memory descriptor. More...
 
 desc (const mkldnn_memory_desc_t &adata)
 Constructs a memory descriptor from a C API data structure. More...
 

Public Attributes

mkldnn_memory_desc_t data
 The underlying C API data structure. More...
 

Friends

struct memory
 

Detailed Description

A memory descriptor.

Constructor & Destructor Documentation

◆ desc() [1/2]

mkldnn::memory::desc::desc ( dims  adims,
data_type  adata_type,
format  aformat 
)
inline

Constructs a memory descriptor.

Parameters
adimsData dimensions
adata_typeData precision/type.
aformatData layout format.

◆ desc() [2/2]

mkldnn::memory::desc::desc ( const mkldnn_memory_desc_t adata)
inline

Constructs a memory descriptor from a C API data structure.

Parameters
adataA C API mkldnn_memory_desc_t structure.

Friends And Related Function Documentation

◆ memory

friend struct memory
friend

Member Data Documentation

◆ data

mkldnn_memory_desc_t mkldnn::memory::desc::data

The underlying C API data structure.


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