diff options
Diffstat (limited to 'tensorflow/core/profiler/internal')
-rw-r--r-- | tensorflow/core/profiler/internal/BUILD | 5 | ||||
-rw-r--r-- | tensorflow/core/profiler/internal/tfprof_timeline.cc | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/core/profiler/internal/BUILD b/tensorflow/core/profiler/internal/BUILD index abb4534f77..129a42deeb 100644 --- a/tensorflow/core/profiler/internal/BUILD +++ b/tensorflow/core/profiler/internal/BUILD @@ -9,6 +9,7 @@ package( licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_test") +load("//tensorflow:tensorflow.bzl", "if_not_windows") cc_library( name = "tfprof_stats", @@ -243,7 +244,7 @@ cc_library( name = "tfprof_utils", srcs = ["tfprof_utils.cc"], hdrs = ["tfprof_utils.h"], - copts = ["-Wno-sign-compare"], + copts = if_not_windows(["-Wno-sign-compare"]), deps = [ ":tfprof_options", "//tensorflow/core:lib", @@ -315,7 +316,7 @@ cc_library( name = "tfprof_tensor", srcs = ["tfprof_tensor.cc"], hdrs = ["tfprof_tensor.h"], - copts = ["-Wno-sign-compare"], + copts = if_not_windows(["-Wno-sign-compare"]), deps = [ "//tensorflow/core:framework", "//tensorflow/core:lib", diff --git a/tensorflow/core/profiler/internal/tfprof_timeline.cc b/tensorflow/core/profiler/internal/tfprof_timeline.cc index ce0d8b7c7b..cfd80b875a 100644 --- a/tensorflow/core/profiler/internal/tfprof_timeline.cc +++ b/tensorflow/core/profiler/internal/tfprof_timeline.cc @@ -327,7 +327,7 @@ void Timeline::AllocateLanes() { int64 start_time = tnode.second->start_micros; int64 end_time = tnode.second->start_micros + tnode.second->exec_micros; int64 l = -1; - for (int i = 0; i < p->lanes.size(); ++i) { + for (int64 i = 0; i < p->lanes.size(); ++i) { const auto& lane = p->lanes[i]; l = i; for (auto cur_it = lane.rbegin(); cur_it != lane.rend(); ++cur_it) { |