Intel® Math Kernel Library 2018 Developer Reference - C

dnnLayoutCreateFromPrimitive

Creates a custom layout.

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.