Fix compilation error with clang.
authorIlya Biryukov <ibiryukov@google.com>
Wed, 21 Mar 2018 19:00:04 +0000 (12:00 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 21 Mar 2018 19:03:06 +0000 (12:03 -0700)
Link to breaking CI build:
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu-clang/232

PiperOrigin-RevId: 189944547

tensorflow/contrib/tpu/profiler/capture_tpu_profile.cc

index f86aff4..e6811d4 100644 (file)
@@ -147,7 +147,7 @@ int main(int argc, char** argv) {
   tensorflow::string session_id =
       tensorflow::tpu::GetCurrentTimeStampAsString();
   constexpr char kProfilePluginDirectory[] = "plugins/profile/";
-  string repository_root =
+  tensorflow::string repository_root =
       ::tensorflow::io::JoinPath(FLAGS_logdir, kProfilePluginDirectory);
   while (true) {
     std::cout << "Starting to profile TPU traces for " << duration_ms << " ms. "