The 'build' command is only supported from within a workspace-SOLVED

论坛 期权论坛 脚本     
匿名技术用户   2021-1-6 03:47   111   0


I install tensorflow by python-pip. it works but when i run my project, the IDE warns me that :"The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations"

I serach the on the overstack and get the answer here. i need to build tensorflow from source like this command:

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

But new error arises :"The 'build' command is only supported from within a workspace"

Solution:

mkdir tensorflow
cd tensorflow
touch WORKSPACE

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP