aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/profiler
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-08-07 06:44:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-08-07 06:48:32 -0700
commit9b6295d7b31e5a9f33492c9a5fc59a4521aa5626 (patch)
tree0e6f818ff78b7e7b6de8c44d83088c9a0213653c /tensorflow/core/profiler
parent5678602a7bc2f38ebab8df1339e8eac31ede562a (diff)
BUILD dependency cleanups.
Rename RecvTensorAsync method to GrpcRecvTensorAsync to fix shadowing of method in Worker with a different signature. PiperOrigin-RevId: 164454701
Diffstat (limited to 'tensorflow/core/profiler')
-rw-r--r--tensorflow/core/profiler/internal/advisor/BUILD4
-rw-r--r--tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/profiler/internal/advisor/BUILD b/tensorflow/core/profiler/internal/advisor/BUILD
index 8c68ec6cb5..40cfd1e12e 100644
--- a/tensorflow/core/profiler/internal/advisor/BUILD
+++ b/tensorflow/core/profiler/internal/advisor/BUILD
@@ -1,6 +1,5 @@
package(
default_visibility = ["//tensorflow:internal"],
- features = ["-parse_headers"],
)
licenses(["notice"]) # Apache 2.0
@@ -12,6 +11,7 @@ cc_library(
hdrs = ["checker.h"],
deps = [
"//tensorflow/core:lib",
+ "//tensorflow/core/profiler:protos_all_cc",
"//tensorflow/core/profiler/internal:tfprof_stats",
],
)
@@ -21,6 +21,7 @@ cc_library(
srcs = ["internal_checker_runner_dummy.cc"],
hdrs = ["internal_checker_runner.h"],
deps = [
+ "//tensorflow/core/profiler:protos_all_cc",
"//tensorflow/core/profiler/internal:tfprof_utils",
],
)
@@ -58,6 +59,7 @@ cc_library(
":expensive_operation_checker",
":internal_checker_runner_dummy",
":operation_checker",
+ "//tensorflow/core/profiler:protos_all_cc",
],
)
diff --git a/tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h b/tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h
index 8b4b90b633..145782c7bd 100644
--- a/tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h
+++ b/tensorflow/core/profiler/internal/advisor/expensive_operation_checker.h
@@ -100,7 +100,6 @@ class ExpensiveOperationChecker : public Checker {
return;
}
std::vector<string> outputs;
- const GraphNodeProto* node = &root;
for (int i = 0; i < 3 && i < root.children_size(); ++i) {
const GraphNodeProto& node = root.children(i);
outputs.push_back(strings::Printf(