【发布时间】:2019-08-07 03:22:49
【问题描述】:
我关注https://www.tensorflow.org/xla/tfcompile,但在第 2 步失败。
怎么了?
cschen
~/git/tensorflow$ bazel build --config=opt //t1:test_graph_tfmatmul ...信息:找到适用的配置定义构建:download_clang in 文件 /home/cschen/git/tensorflow/.bazelrc: --crosstool_top=@local_config_download_clang//:toolchain --define=using_clang=true --action_env TF_DOWNLOAD_CLANG=1 信息:找到适用的配置定义构建:在文件中选择 /home/cschen/git/tensorflow/.tf_configure.bazelrc: --copt=-march=native --copt=-Wno-sign-compare --host_copt=-march=native --define with_default_optimizations=true 信息:构建选项 --cpu 已更改,丢弃分析缓存。 错误:目标 '//t1:test_graph_tfmatmul' 的分析失败;建造 中止:没有这样的包 'tools/target_cpu':在上找不到 BUILD 文件 包路径...
我从第2步复制到t1/BUILD如下,
~/git/tensorflow$ cat t1/BUILD load("//tensorflow/compiler/aot:tfcompile.bzl", "tf_library") ...
预期的结果是生成头文件test_graph_tfmatmul.h。
【问题讨论】:
标签: tensorflow-xla