Tensorflow:在Windows上从源代码构建时出错:错误C2589:'constant':'::'右侧的非法令牌

时间:2019-02-20 08:45:47

标签: python c++ python-3.x windows tensorflow

在Windows上从源代码构建张量流时,执行命令

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

我遇到以下错误:

/_objs/graph_transformations/resolve_fake_quant_args_from_vars.obj /c tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc
Execution platform: @bazel_tools//platforms:host_platform
tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc(64): error C2589: 'constant': illegal token on right side of '::'
tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc(64): error C2062: type 'unknown-type' unexpected
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 200.240s, Critical Path: 39.08s
INFO: 336 processes: 336 local.
FAILED: Build did NOT complete successfully

是否有解决此问题的建议?谢谢。

0 个答案:

没有答案