From d44f37161d34f0de012e10d5aebc2acfdb292be2 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 13 Nov 2017 17:04:08 -0800 Subject: [PATCH] Remove unused using-declarations PiperOrigin-RevId: 175611524 --- tensorflow/compiler/xla/service/algebraic_simplifier.cc | 3 --- tensorflow/contrib/lite/kernels/optional_tensor_test.cc | 2 -- tensorflow/core/grappler/costs/graph_properties.cc | 5 +---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/tensorflow/compiler/xla/service/algebraic_simplifier.cc b/tensorflow/compiler/xla/service/algebraic_simplifier.cc index 5c9b29f6e20..bc9a3ac43db 100644 --- a/tensorflow/compiler/xla/service/algebraic_simplifier.cc +++ b/tensorflow/compiler/xla/service/algebraic_simplifier.cc @@ -46,9 +46,6 @@ limitations under the License. namespace xla { namespace { -using tensorflow::gtl::nullopt; -using tensorflow::gtl::optional; - // Returns whether operand is a literal with the given value. bool IsLiteralWithValue(const HloInstruction* operand, int8 value) { return operand->opcode() == HloOpcode::kConstant && diff --git a/tensorflow/contrib/lite/kernels/optional_tensor_test.cc b/tensorflow/contrib/lite/kernels/optional_tensor_test.cc index 8977d27f73c..8e9cc07656c 100644 --- a/tensorflow/contrib/lite/kernels/optional_tensor_test.cc +++ b/tensorflow/contrib/lite/kernels/optional_tensor_test.cc @@ -28,8 +28,6 @@ limitations under the License. namespace tflite { namespace { -using ::testing::ElementsAreArray; - class LSTMOpModel : public SingleOpModel { public: LSTMOpModel(int n_batch, int n_input, int n_cell, int n_output, bool use_cifg, diff --git a/tensorflow/core/grappler/costs/graph_properties.cc b/tensorflow/core/grappler/costs/graph_properties.cc index 35048a4fcff..26b85217718 100644 --- a/tensorflow/core/grappler/costs/graph_properties.cc +++ b/tensorflow/core/grappler/costs/graph_properties.cc @@ -25,16 +25,13 @@ limitations under the License. namespace tensorflow { namespace grappler { +namespace { -using shape_inference::Dimension; using shape_inference::DimensionHandle; using shape_inference::InferenceContext; -using shape_inference::Shape; using shape_inference::ShapeAndType; using shape_inference::ShapeHandle; -namespace { - template struct HashHandle { std::size_t operator()(const Handle& h) const { return h.Handle(); }