我在这里按照教程进行操作:TensorFlow AOT 编译
根据步骤1和2,我编译了subgraph,生成了header( test_graph_tfmatmul.h
)和object( test_graph_tfmatmul.o
)文件;
根据步骤 3,我使用示例代码(命名为my_code.cc
)来调用子图;
根据第 4 步,我将代码片段添加cc_binary
到现有BUILD
文件 ( //tensorflow/compiler/aot/tests/BUILD
),并尝试使用以下命令创建最终二进制文件:
bazel build //tensorflow/compiler/aot/tests:my_binary
但我收到以下错误:
undeclared inclusion(s) in rule '//tensorflow/compiler/aot/tests:my_binary':
this rule is missing dependency declarations for the following files included by 'tensorflow/compiler/aot/tests/tfcompile_test.cc':
'/home/tensorFlow_src/tensorflow/tensorflow/compiler/aot/tests/test_graph_tfmatmul.h'
欢迎任何建议。谢谢。