Hello,
This is my first program using MKL library and i want to include a simple batch normalization call after convolution. This is my code for BN
Does anyone have an idea what i did wrong and why the execution of my code is failing ?
/*** BN1 section ***/
CHECK_ERR(dnnBatchNormalizationCreateForward_F64(&bn1, attributes, lt_conv1_output, 0), err);
resBn1[dnnResourceSrc] = resConv1[dnnResourceDst];
CHECK_ERR(dnnLayoutCreateFromPrimitive_F64(<_bn1_output, bn1, dnnResourceDst), err);
CHECK_ERR(dnnAllocateBuffer_F64((void **)&resBn1[dnnResourceDst], lt_bn1_output), err);
CHECK_ERR(init_conversion(&cv_relu1_to_user_output, &user_o, lt_user_output, lt_bn1_output, resBn1[dnnResourceDst]), err);
...............
CHECK_ERR(dnnExecute_F64(bn1, (void *)resBn1), err);