eric-haibin-lin commented on a change in pull request #12058: MKLDNN can be turned off with env var URL: https://github.com/apache/incubator-mxnet/pull/12058#discussion_r210393506
########## File path: src/operator/nn/mkldnn/mkldnn_base-inl.h ########## @@ -137,6 +137,10 @@ static inline bool SupportMKLDNN(const NDArray &input) { && SupportStorageMKLDNN(input.storage_type()); } +static inline bool MKLDNNEnvSet() { Review comment: Can we declare a static var so the linear time env lookup only happen once ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services