Intel® Math Kernel Library 2018 Developer Reference - C

dnnLayoutGetMemorySize

Returns the size of the array specified by a layout.

Syntax

size_t dnnLayoutGetMemorySize_F32(const dnnLayout_t Layout);

size_t dnnLayoutGetMemorySize_F64(const dnnLayout_t Layout);

Include Files

Input Parameters

Layout

The layout for which to compute the size.

Output Parameters

None.

Description

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