Intel® Math Kernel Library 2019 Developer Reference - C

dnnLayoutCreateFromPrimitive

Creates a custom 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 dnnLayoutCreateFromPrimitive_F32(dnnLayout_t *pLayout, const dnnPrimitive_t primitive, dnnResourceType_t type);

dnnError_t dnnLayoutCreateFromPrimitive_F64(dnnLayout_t *pLayout, const dnnPrimitive_t primitive, dnnResourceType_t type);

Include Files

Input Parameters

primitive

The primitive to query for the required layout.

type

The resource with the required layout queried.

Output Parameters

pLayout

Pointer to the layout to create.

Description

Each dnnLayoutCreateFromPrimitive function creates a layout that a DNN operation requires for its resource.