Intel® Math Kernel Library 2018 Developer Reference - C

dnnScaleCreate

Creates scale layers.

Syntax

dnnError_t dnnScaleCreate_F32 (dnnPrimitive_t *pScale, dnnPrimitiveAttributes_t attributes, const dnnLayout_t dataLayout, float alpha);

dnnError_t dnnScaleCreate_F64 (dnnPrimitive_t *pScale, dnnPrimitiveAttributes_t attributes, const dnnLayout_t dataLayout, float alpha);

Include Files

Input Parameters

attributes

The set of attributes for the primitive.

dataLayout

The layout of the input.

alpha

The scaling factor.

Output Parameters

pScale

Pointer to the primitive to create.

Description

Each dnnScaleCreate function creates a scale primitive. A scaling operation is defined as follows:

dst[x] = alpha*src[x].

The primitive supports the following kinds of scaling: