在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
是否有解决此问题的建议?谢谢。