Intel® Math Kernel Library 2018 Developer Reference - C
The type dnnPrimitive_t is a pointer to an opaque structure that describes DNN operations.
To perform a DNN operation, in your application call available Intel MKL DNN functions to do the following:
To create a description of a DNN operation, call a function:
Here
<Operation> is Convolution, Pooling, Normalization, or ReLU,
<Direction> is Forward or Backward,
<Resource Name>, optional, is Bias, Data, Filter, or an empty string,
<Data Type> is F32 or F64.
To perform a DNN operation, call a dnnExecute_<Data Type> function and pass to it the description of the operation and an array of pointers to operation resources.
Because the dnnConversionExecute_<Data Type> function has a simpler interface than dnnExecute_<Data Type>, if a DNN operation is a conversion, you can alternatively call the dnnExecute_<Data Type> function and pass to it the description of the conversion and pointers to input and output arrays.
To destroy a description of a DNN operation, call a dnnDelete_<Data Type> function.
Descriptions of functions that create DNN operations use the following notational conventions: