Intel® Math Kernel Library 2019 Developer Reference - C

dnnLayoutCreate

Creates a plain 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.

Syntax

dnnError_t dnnLayoutCreate_F32(dnnLayout_t *pLayout, size_t dimension, const size_t size[], const size_t strides[]);

dnnError_t dnnLayoutCreate_F64(dnnLayout_t *pLayout, size_t dimension, const size_t size[], const size_t strides[]);

Include Files

Input Parameters

dimension

The number of dimensions of the array.

size

The size along each dimension of the array.

strides

The distance (in elements) between consecutive elements along each dimension of the array.

Output Parameters

pLayout

Pointer to the to the created layout.

Description

Each dnnLayoutCreate function creates a plain layout. The elements of an array that have the layout *pLayout are located at offsets (X, strides) from the beginning of the array where ( . , . ) denotes the scalar product of two vectors and the vector X is such that 0 ≤ X[i] < size[i] for i from 0 to dimension-1.