如何使用cpu sse支持编译tensorflow静态库?

时间:2018-05-04 06:17:44

标签: c++ tensorflow sse

简单地说,我需要将tensorflow构建到静态库中,并且我已经通过tensorflow / contrib / makefile / build_all_linux.sh下的脚本成功实现了该目标。 但在将此libtensorflow-core.a链接到我的测试程序之后,它表明性能出乎意料地差。我发现存在一堆如下所示的日志。似乎没有cpu sse支持已经内置到静态库中。 任何帮助将不胜感激。

2018-05-04 13:45:44.304314: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "EncodeProto" device_type: "CPU"') for unknown op: EncodeProto
2018-05-04 13:45:44.304648: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "DecodeProtoV2" device_type: "CPU"') for unknown op: DecodeProtoV2
2018-05-04 13:45:44.304720: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT64 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304732: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT32 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304741: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT16 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304750: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_UINT16 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304759: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_INT8 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304768: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "PopulationCount" device_type: "CPU" constraint { name: "T" allowed_values { list { type: DT_UINT8 } } }') for unknown op: PopulationCount 
2018-05-04 13:45:44.304910: E tensorflow/core/framework/op_kernel.cc:1242] OpKernel ('op: "MutableDenseHashTable" device_type: "CPU" constraint { name: "key_dtype" allowed_values { list { type: DT_INT64 } } } constraint { name: "value_dtype" allowed_values { list { type: DT_VARIANT } } }') for unknown op: MutableDenseHashTable

0 个答案:

没有答案