如何在没有SSE的情况下为Tensorflow Rust绑定构建libtensorflow.so?

时间:2017-03-21 06:41:39

标签: tensorflow rust

我一直在尝试在Ubuntu 16.04 32bit上使用Tensorflow Rust社区绑定。编译成功,我有一个工作libtensorflow.so文件 正确地与Rust程序链接,但是一旦我运行程序,我就会收到以下错误:

F tensorflow/core/platform/cpu_feature_guard.cc:35] The TensorFlow library was compiled to use SSE instructions, but these aren't available on your machine.

我已经尝试了几种解决方案,并且我已经成功地使libtensorflow_cc.so共享库工作,但是适用于此的相同解决方案对libtensorflow.so共享库不起作用。我正在尝试从主tensorflow github存储库编译r1.0标记。

tensorflow.bzl没有this回答中引用的行,因此该解决方案不适用。我也尝试使用bazel build --copt=-mno-sse ...进行编译,但这也无效。关于如何解决这个问题的任何想法?

0 个答案:

没有答案