diff options
author | Yanan Cao <ycao@google.com> | 2018-09-11 09:33:04 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-11 09:38:56 -0700 |
commit | ac60b46e2c5962fd8099a4406c1788d826ad3c0d (patch) | |
tree | 9ddf45e02b1d7cd0828bc1a216bc4a58af7a562d /tensorflow/compiler/tf2xla | |
parent | 847b38406a28546991b62193278ee87910cd3d74 (diff) |
Automated rollback of commit 45965cfd8b54fb113275ffdaced5366e28aa3553
PiperOrigin-RevId: 212465918
Diffstat (limited to 'tensorflow/compiler/tf2xla')
-rw-r--r-- | tensorflow/compiler/tf2xla/BUILD | 1 | ||||
-rw-r--r-- | tensorflow/compiler/tf2xla/cc/BUILD | 4 | ||||
-rw-r--r-- | tensorflow/compiler/tf2xla/test_util.cc | 8 | ||||
-rw-r--r-- | tensorflow/compiler/tf2xla/test_util.h | 16 |
4 files changed, 1 insertions, 28 deletions
diff --git a/tensorflow/compiler/tf2xla/BUILD b/tensorflow/compiler/tf2xla/BUILD index 74b131e07e..ab289a2b6c 100644 --- a/tensorflow/compiler/tf2xla/BUILD +++ b/tensorflow/compiler/tf2xla/BUILD @@ -594,7 +594,6 @@ cc_library( "//tensorflow/compiler/xla:status_macros", "//tensorflow/core:core_cpu", "//tensorflow/core:framework", - "//tensorflow/core:framework_internal", "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", ], diff --git a/tensorflow/compiler/tf2xla/cc/BUILD b/tensorflow/compiler/tf2xla/cc/BUILD index 8ac5eb5df9..ea8d1b3d14 100644 --- a/tensorflow/compiler/tf2xla/cc/BUILD +++ b/tensorflow/compiler/tf2xla/cc/BUILD @@ -31,9 +31,7 @@ cc_library( tf_gen_op_wrapper_cc( name = "xla_jit_op_gen", out_ops_file = "ops/xla_jit_op", - deps = [ - "//tensorflow/compiler/jit/ops:xla_ops", - ], + deps = ["//tensorflow/compiler/jit/ops:xla_ops"], ) cc_library( diff --git a/tensorflow/compiler/tf2xla/test_util.cc b/tensorflow/compiler/tf2xla/test_util.cc index f31bfb45a2..3c6c9a91b6 100644 --- a/tensorflow/compiler/tf2xla/test_util.cc +++ b/tensorflow/compiler/tf2xla/test_util.cc @@ -40,12 +40,4 @@ Status InstantiateFunctionForTest(const string& name, return Status::OK(); } -std::unordered_map<string, Node*> BuildNodeIndex(const Graph& graph) { - std::unordered_map<string, Node*> index; - for (Node* node : graph.nodes()) { - index[node->name()] = node; - } - return index; -} - } // namespace tensorflow diff --git a/tensorflow/compiler/tf2xla/test_util.h b/tensorflow/compiler/tf2xla/test_util.h index 350a868568..e6e4ae92ed 100644 --- a/tensorflow/compiler/tf2xla/test_util.h +++ b/tensorflow/compiler/tf2xla/test_util.h @@ -24,10 +24,8 @@ limitations under the License. #include "tensorflow/core/framework/function.h" #include "tensorflow/core/framework/graph.pb.h" -#include "tensorflow/core/framework/graph_def_util.h" #include "tensorflow/core/graph/graph.h" #include "tensorflow/core/lib/core/status.h" -#include "tensorflow/core/util/equal_graph_def.h" namespace tensorflow { @@ -44,20 +42,6 @@ Status InstantiateFunctionForTest(const string& name, const FunctionLibraryDefinition& library, InstantiationResultForTest* result); -// Builds a map from node name to Node* for `graph`. -std::unordered_map<string, Node*> BuildNodeIndex(const Graph& graph); - } // namespace tensorflow -// Variant of TF_EXPECT_GRAPH_EQ that also compares internal attributes for -// equality. -#define TF_EXPECT_GRAPH_EQ_INTERNAL(expected, actual) \ - do { \ - string diff; \ - EqualGraphDefOptions eq_options; \ - eq_options.ignore_internal_attrs = false; \ - EXPECT_TRUE(EqualGraphDef(actual, expected, &diff, eq_options)) \ - << diff << "\nActual: " << SummarizeGraphDef(actual); \ - } while (false) - #endif // TENSORFLOW_COMPILER_TF2XLA_TEST_UTIL_H_ |