求助,安装了mxnet-mkl,但是一直有提示

安装的时候使用 pip install mxnet-mkl --pre
安装完可以跑程序,但是每次计算网络推理,都会提示如下信息,会增加额外运行时间,
13:37:47] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[13:42:27] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[13:42:32] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.

请问大神,要怎么设置

@haipai1
请问你用的mxnet-mkl的版本是多少?
“会增加额外运行时间” 是和什么比较的?你觉的是这些log message导致的额外运行时间?

版本是mxnet-mkl 1.6.0,跑的是MTCNN的推理,“会增加运行时间”是在单步调试的时候发现“先出现提示,然后计算推理”的现象,每次推理都会出现这些提示,感觉是每次都激活mkldnn,然后再计算:
[14:23:08] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:09] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
(‘1 cost time:’, 2.056811809539795)
[14:23:21] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:23] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:23] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
[14:23:24] src/executor/graph_executor.cc:1984: Subgraph backend MKLDNN is activated.
1.9596144
0.020192852
(‘2 cost time:’, 5.823750019073486)

你可以通过设置MXNET_SUBGRAPH_VERBOSE来关掉这个log,但是这个应该不会太影响总体的性能。“Subgraph backend MKLDNN is activated” 更明确的是“MKLDNN backend被使用了”。

好的,谢谢大神