Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Tensorflow中导入警告_Python_Matlab_Tensorflow - Fatal编程技术网

Python 在Tensorflow中导入警告

Python 在Tensorflow中导入警告,python,matlab,tensorflow,Python,Matlab,Tensorflow,我在导入tensorflow时收到这些警告 系统:Windows 10 64位 Python:3.5.2 Tensorflow CPU:1.1.0夜间构建 2017-04-04 16:59:56.185045: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't

我在导入tensorflow时收到这些警告

系统:Windows 10 64位

Python:3.5.2

Tensorflow CPU:1.1.0夜间构建

2017-04-04 16:59:56.185045: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.185185: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.186551: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.187141: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.187629: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.188138: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
虽然在python中运行时这些都不是问题,但是当我从MATLAB调用python脚本时,问题就出现了。我有一个朋友用Theano做了同样的事情,他告诉我,为了让它在MATLAB上工作,你必须重新查看所有的错误和警告。我已尝试了所有可用的解决方案,但仍无法解决这些警告

如果有人能回答这个问题,我将非常感激


如果您是从源代码构建tensorflow并使用高度实验性的

您可以使用以下参数:

bazel build -c opt --copt=-mavx --copt=-mavx2 \
   --copt=-mfma \
   --copt=-mfpmath=both \ 
   --copt=-msse4.2 \
   --config=cuda -k //tensorflow/tools/pip_package:build_pip_package

如果您没有使用cuda支持进行构建,请删除
--config=cuda-k

可能与linux版相同,而且我不使用anaconda。因此,这个问题可能不应该重复。你是从源代码构建的吗?我必须这样做,因为我没有其他选择。为什么你不能通过pip安装?我现在正在我的ubuntu机器上构建它,它将把.whl文件安装到windows中。我不知道这是否有效,但让我们看看我试图构建文件,但失败了,所以是否有一种方法可以指示解释器完全忽略警告