aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/shape_inference.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-28 10:36:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-28 10:43:43 -0700
commit4f4e1b48862c30a21dedffb7a1929a2b2600ec9f (patch)
tree9b10bb2e00dde7890b4dcd1ddc6fb18698bf00d2 /tensorflow/compiler/xla/service/shape_inference.cc
parentd8f64b90e6f0bfec5135bdf99e42b8fdaf53788d (diff)
Removed redundant std::string -> string conversions.
PiperOrigin-RevId: 210565027
Diffstat (limited to 'tensorflow/compiler/xla/service/shape_inference.cc')
-rw-r--r--tensorflow/compiler/xla/service/shape_inference.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/shape_inference.cc b/tensorflow/compiler/xla/service/shape_inference.cc
index ae6a366d25..b04d2a7ba6 100644
--- a/tensorflow/compiler/xla/service/shape_inference.cc
+++ b/tensorflow/compiler/xla/service/shape_inference.cc
@@ -52,7 +52,7 @@ bool AllUnique(tensorflow::gtl::ArraySlice<int64> slice) {
Status ExpectArray(const Shape& shape, absl::string_view op_type) {
if (!ShapeUtil::IsArray(shape)) {
return InvalidArgument("Expected array argument for %s, but got %s.",
- std::string(op_type), ShapeUtil::HumanString(shape));
+ string(op_type), ShapeUtil::HumanString(shape));
}
return Status::OK();
}