Returns the size of the array specified by a layout. Note: The Deep Neural Network (DNN) component in Intel MKL is deprecated and will be removed in a future release. You can continue to use optimized functions for deep neural networks through Intel Math Kernel Library for Deep Neural Networks.


size_t dnnLayoutGetMemorySize_F32(const dnnLayout_t Layout);

size_t dnnLayoutGetMemorySize_F64(const dnnLayout_t Layout);

Include Files

  • mkl.h

Input Parameters


The layout for which to compute the size.

Output Parameters



Each dnnLayoutGetMemorySize function returns the memory size in bytes sufficient to hold an array of a given layout.

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.
Выберите цвет фиксируемой кнопки: 
Orange (only for download buttons)