티스토리 뷰

brown@devbox:~/tensorflow$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/home/brown/workspace/sktskh/tensorflow_aixh/tools/bazel.rc
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=141
INFO: Reading rc options for 'build' from /home/brown/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python --define with_xla_support=true --action_env TF_NEED_OPENCL_SYCL=0 --action_env TF_NEED_ROCM=0 --action_env TF_NEED_CUDA=1
ERROR: Config value opt is not defined in any .rc file

해결 방법

--config=opt 대신에 -c opt 로 대체한다.

brown@devbox:~/tensorflow$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
Comments
댓글쓰기 폼