Python Tensorflow XLA编译器- BAZEL构建错误-找不到包含文件“…hlo“运营”基地td“;
我正在尝试使用Tensorflow提供的XLA编译器,如下所示: 简而言之,它下载一个ResNet50网络并将其编译为库 在bazel构建的执行过程中,我总是遇到以下构建错误: 错误:找不到包含文件“tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td” 包括“tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td” ^ external/org_tensorflow/tensorflow/compiler/mlir/xla/ir/hlo_ops.td:22:9:错误:顶层意外输入 包括“tensorflow/compiler/mlir/xla/ir/hlo\u ops\u base.td” 因此,它找不到hlo_ops_base.td文件,该文件当然存在于路径中(我检查了它) 我第一次尝试这种方法时,效果很好 之后,我又在不同的机器上执行了它(在不同的平台上也是完美干净的虚拟机),但总是有相同的问题 我正在使用Python Tensorflow XLA编译器- BAZEL构建错误-找不到包含文件“…hlo“运营”基地td“;,python,tensorflow,bazel,protoc,xla,Python,Tensorflow,Bazel,Protoc,Xla,我正在尝试使用Tensorflow提供的XLA编译器,如下所示: 简而言之,它下载一个ResNet50网络并将其编译为库 在bazel构建的执行过程中,我总是遇到以下构建错误: 错误:找不到包含文件“tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td” 包括“tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td” ^ external/org_tensorflow/tensorflow/compiler/ml
- bazel 1.1.0
- tensorflow 1.14(cpu)
- protobuf 3.0.0
- python 2.7
> ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/e5cce820cc082410b4fcc604db349066/external/org_tensorflow/tensorflow/compiler/mlir/xla/BUILD:465:1: Executing genrule @org_tensorflow//tensorflow/compiler/mlir/xla:operator_writer_inc failed (Exit 1)
[6,144 / 7,191] 3 actions running
@org_tensorflow//tensorflow/compiler/xla/client:global_data; 4s local
@org_tensorflow//tensorflow/core/kernels/tensor_forest:resources; 1s local
...//tensorflow/core/kernels:eigen_contraction_kernel_with_mkl; 1s local
external/org_tensorflow/tensorflow/compiler/mlir/xla/ir/hlo_ops.td:22:9: error: Could not find include file 'tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td'
include "tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td"
^
external/org_tensorflow/tensorflow/compiler/mlir/xla/ir/hlo_ops.td:22:9: error: Unexpected input at top level
include "tensorflow/compiler/mlir/xla/ir/hlo_ops_base.td"
^
[6,144 / 7,191] 3 actions running
@org_tensorflow//tensorflow/compiler/xla/client:global_data; 4s local
@org_tensorflow//tensorflow/core/kernels/tensor_forest:resources; 1s local
...//tensorflow/core/kernels:eigen_contraction_kernel_with_mkl; 1s local
Target @org_tensorflow//:graph failed to build
[6,147 / 7,191] checking cached actions
Use --verbose_failures to see the command lines of failed build steps.
[6,147 / 7,191] checking cached actions
INFO: Elapsed time: 7903.567s, Critical Path: 204.12s
[6,147 / 7,191] checking cached actions
INFO: 5961 processes: 5961 local.
[6,147 / 7,191] checking cached actions
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully