首先在csdn上着了大神关于这个的实践如下链接
https://www.cnblogs.com/jojodru/p/7744630.html
但是报错如下,说是找不到opt选项。
INFO: Reading rc options for 'build' from /home/allen/project/tensorflow180711/tools/bazel.rc:
'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define=grpc_no_ares=true --spawn_strategy=standalone --genrule_strategy=standalone -c opt
ERROR: Config value opt is not defined in any .rc file
INFO: Reading rc options for 'build' from /home/allen/project/tensorflow180711/tools/bazel.rc:
'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define=grpc_no_ares=true --spawn_strategy=standalone --genrule_strategy=standalone -c opt
ERROR: Config value opt is not defined in any .rc file
INFO: Reading rc options for 'build' from /home/allen/project/tensorflow180711/tools/bazel.rc:
'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define=grpc_no_ares=true --spawn_strategy=standalone --genrule_strategy=standalone -c opt
ERROR: Config value opt is not defined in any .rc file
INFO: Reading rc options for 'build' from /home/allen/project/tensorflow180711/tools/bazel.rc:
'build' options: --define f