Intel® Math Kernel Library 2018 Developer Reference - C

dnnPrimitiveGetAttributes

Returns the container with attributes set for an instance of a primitive.

Syntax

dnnError_t dnnPrimitiveGetAttributes_F32(dnnPrimitive_t primitive, dnnPrimitiveAttributes_t *attributes);

dnnError_t dnnPrimitiveGetAttributes_F64(dnnPrimitive_t primitive, dnnPrimitiveAttributes_t *attributes);

Include Files

Input Parameters

primitive

The operation primitive to extract attributes for.

Output Parameters

attributes

Pointer to the container filled with attributes.

Description

Each dnnPrimitiveGetAttributes function creates a container with attributes that were passed on creation of the primitive instance. The function may allocate extra memory for the container. To release that memory, call dnnPrimitiveAtrributesDestroy.