Intel® Math Kernel Library 2019 Developer Reference - C

dnnScaleCreate

Creates scale layers. 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 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: