From 3ae0153778c0e2044264d10ad3a025e8daf0e542 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 27 May 2016 08:35:42 -0800 Subject: [PATCH] Get rid of tensorflow::test::Node Conflicts with the tensorflow::Node class and is unused. Change: 123426500 --- tensorflow/core/kernels/BUILD | 1 - tensorflow/core/kernels/ops_testutil.cc | 35 ------------------------- tensorflow/core/kernels/ops_testutil.h | 4 --- 3 files changed, 40 deletions(-) delete mode 100644 tensorflow/core/kernels/ops_testutil.cc diff --git a/tensorflow/core/kernels/BUILD b/tensorflow/core/kernels/BUILD index 06b74869970..8e4a1017ec7 100644 --- a/tensorflow/core/kernels/BUILD +++ b/tensorflow/core/kernels/BUILD @@ -114,7 +114,6 @@ cc_library( cc_library( name = "ops_testutil", testonly = 1, - srcs = ["ops_testutil.cc"], hdrs = ["ops_testutil.h"], deps = [ "//tensorflow/core:core_cpu", diff --git a/tensorflow/core/kernels/ops_testutil.cc b/tensorflow/core/kernels/ops_testutil.cc deleted file mode 100644 index a3ce00d355e..00000000000 --- a/tensorflow/core/kernels/ops_testutil.cc +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2015 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -==============================================================================*/ - -#include "tensorflow/core/kernels/ops_testutil.h" - -#include - -namespace tensorflow { -namespace test { - -NodeDef Node(const string& name, const string& op, - const std::vector& inputs) { - NodeDef def; - def.set_name(name); - def.set_op(op); - for (const string& s : inputs) { - def.add_input(s); - } - return def; -} - -} // namespace test -} // namespace tensorflow diff --git a/tensorflow/core/kernels/ops_testutil.h b/tensorflow/core/kernels/ops_testutil.h index b2b926e78dd..335cd738bdd 100644 --- a/tensorflow/core/kernels/ops_testutil.h +++ b/tensorflow/core/kernels/ops_testutil.h @@ -48,10 +48,6 @@ namespace tensorflow { namespace test { -// Return a NodeDef with the specified name/op/inputs. -NodeDef Node(const string& name, const string& op, - const std::vector& inputs); - inline void SetOutputAttrs(OpKernelContext::Params* params, std::vector* attrs) { attrs->clear();