From 18d4056bb15e8efc9ff289a70d46fe0aef1da2bb Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 25 Feb 2020 10:31:27 -0800 Subject: [PATCH] Qualify uses of std::string PiperOrigin-RevId: 297148457 Change-Id: Id91f1da7d30e9a9880d8610c36ef8657f12817f0 --- tensorflow/compiler/xla/service/interpreter/platform.cc | 4 ++-- tensorflow/compiler/xla/service/interpreter/platform.h | 6 +++--- .../compiler/xla/tests/local_client_aot_test_helper.cc | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tensorflow/compiler/xla/service/interpreter/platform.cc b/tensorflow/compiler/xla/service/interpreter/platform.cc index e1ab7bb9646..79f5c0fd901 100644 --- a/tensorflow/compiler/xla/service/interpreter/platform.cc +++ b/tensorflow/compiler/xla/service/interpreter/platform.cc @@ -30,7 +30,7 @@ limitations under the License. namespace stream_executor { namespace interpreter { -XlaInterpreterPlatform::XlaInterpreterPlatform(const string& name, +XlaInterpreterPlatform::XlaInterpreterPlatform(const std::string& name, const Platform::Id& id) : name_(name), id_(id) {} @@ -40,7 +40,7 @@ Platform::Id XlaInterpreterPlatform::id() const { return id_; } int XlaInterpreterPlatform::VisibleDeviceCount() const { return 1; } -const string& XlaInterpreterPlatform::Name() const { return name_; } +const std::string& XlaInterpreterPlatform::Name() const { return name_; } port::StatusOr> XlaInterpreterPlatform::DescriptionForDevice(int ordinal) const { diff --git a/tensorflow/compiler/xla/service/interpreter/platform.h b/tensorflow/compiler/xla/service/interpreter/platform.h index ff9c5d07f8d..da037bf17bc 100644 --- a/tensorflow/compiler/xla/service/interpreter/platform.h +++ b/tensorflow/compiler/xla/service/interpreter/platform.h @@ -31,14 +31,14 @@ class XlaInterpreterPlatform : public Platform { public: XlaInterpreterPlatform() : XlaInterpreterPlatform("Interpreter", kXlaInterpreterPlatformId) {} - XlaInterpreterPlatform(const string& name, const Platform::Id& id); + XlaInterpreterPlatform(const std::string& name, const Platform::Id& id); ~XlaInterpreterPlatform() override; Platform::Id id() const override; int VisibleDeviceCount() const override; - const string& Name() const override; + const std::string& Name() const override; port::StatusOr> DescriptionForDevice( int ordinal) const override; @@ -60,7 +60,7 @@ class XlaInterpreterPlatform : public Platform { private: // This platform's name. - string name_; + std::string name_; // This platform's id. Platform::Id id_; diff --git a/tensorflow/compiler/xla/tests/local_client_aot_test_helper.cc b/tensorflow/compiler/xla/tests/local_client_aot_test_helper.cc index 8f89c4655a3..c35f05ebf45 100644 --- a/tensorflow/compiler/xla/tests/local_client_aot_test_helper.cc +++ b/tensorflow/compiler/xla/tests/local_client_aot_test_helper.cc @@ -60,8 +60,8 @@ int main(int argc, char** argv) { LOG(FATAL) << "local_client_aot_test_helper TARGET_CPU"; } - string triple_string; - string target_cpu = argv[1]; + std::string triple_string; + std::string target_cpu = argv[1]; if (target_cpu == "k8") { triple_string = "x86_64-none-linux-gnu"; } else if (target_cpu == "darwin") {