Should we use both global use_mkldnn flag and per-OP use_ mkldnn flag as it is in paddle v2?
Created by: luotao1
This issue comes from Zelazko, Pawel. Related with question #6 (closed) in https://github.com/PaddlePaddle/Paddle/wiki/Intel-Open-Questions
In fluid, for CUDNN, GetExpectedKernel decides if it has to use CUDNN library based on operator use_cudnn flag. How control of kernel-selection is different in unit-test and normal use case? Having use_mkldnn both as global and OP field, should MLDNN be chosen only when both are set to true, or only the global one? I’m not sure if I will have an access to global fields in GetExpectedKernel method, I will check that later.