<p dir="auto">Ubuntu 14.04<br>
GCC 4.8.4<br>
Cuda 7.5<br>
Cudnn 4.0.7<br>
Bazel 0.2.2b</p>
<hr>
<p dir="auto"><code class="notranslate">bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer</code><br>
INFO: Found 1 target...<br>
ERROR: /home/peiguo/.cache/bazel/_bazel_peiguo/67521296d96959142b2d5d303d9c774c/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':<br>
this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':<br>
'/usr/include/stdc-predef.h'<br>
'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h'<br>
'/usr/include/string.h'<br>
'/usr/include/features.h'<br>
'/usr/include/x86_64-linux-gnu/sys/cdefs.h'<br>
'/usr/include/x86_64-linux-gnu/bits/wordsize.h'<br>
'/usr/include/x86_64-linux-gnu/gnu/stubs.h'<br>
'/usr/include/x86_64-linux-gnu/gnu/stubs-64.h'<br>
'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h'<br>
'/usr/include/xlocale.h'<br>
'/usr/include/x86_64-linux-gnu/bits/string3.h'<br>
'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h'<br>
'/usr/include/stdint.h'<br>
'/usr/include/x86_64-linux-gnu/bits/wchar.h'.<br>
Target //tensorflow/cc:tutorials_example_trainer failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 2.329s, Critical Path: 2.01s</p>
<hr>
<p dir="auto">I have tried many times, the error is always undeclared inclusion(s) in rule xxxx, but the xxxx is changing constantly.</p>
<p dir="auto">With the new <code class="notranslate">tf.summary</code> module, the name shown in tensorboard has to be equal to the summary op in the graph.<br>
As a result, the name shown in tensorboard cannot be the same as any existing op in the graph.<br>
This can create a bit of problem. Before this change, I could have some op named <code class="notranslate">loss</code> and the summary of its output also named <code class="notranslate">loss</code>, which is very consistent and easy to play with -- I can just look for the name of the tensor in tensorboard.<br>
Now it looks like I have to add a prefix/suffix to everything because they cannot use the same name. Otherwise I got <code class="notranslate">loss_1</code> in tensorboard which is confusing especially to new users.</p>
<p dir="auto">Is there some changes that could be done to the new <code class="notranslate">summary</code> module that keeps the nice old feature?</p>