Move equal_graph_def.h/cc from core/graph to core/util

This fixes build dependencies for a future patch (specifically allows
referencing equal_graph_def.h from core/framework)
Change: 151668115
This commit is contained in:
Skye Wanderman-Milne 2017-03-29 22:09:23 -08:00 committed by TensorFlower Gardener
parent dcddf2d0b0
commit 649ac98246
16 changed files with 17 additions and 16 deletions

View File

@ -42,8 +42,8 @@ tf_cc_test(
":gradients", ":gradients",
":testutil", ":testutil",
"//tensorflow/core:all_kernels", "//tensorflow/core:all_kernels",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:test", "//tensorflow/core:test",
"//tensorflow/core:test_main", "//tensorflow/core:test_main",
"//tensorflow/core:testlib", "//tensorflow/core:testlib",
@ -78,8 +78,8 @@ tf_cc_test(
":gradient_checker", ":gradient_checker",
":testutil", ":testutil",
"//tensorflow/core:all_kernels", "//tensorflow/core:all_kernels",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:test", "//tensorflow/core:test",
"//tensorflow/core:test_main", "//tensorflow/core:test_main",
"//tensorflow/core:testlib", "//tensorflow/core:testlib",

View File

@ -19,9 +19,9 @@ limitations under the License.
#include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/framework/tensor_testutil.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
using namespace ops; // NOLINT(build/namespaces) using namespace ops; // NOLINT(build/namespaces)

View File

@ -19,9 +19,9 @@ limitations under the License.
#include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/framework/tensor_testutil.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
using namespace ops; // NOLINT(build/namespaces) using namespace ops; // NOLINT(build/namespaces)

View File

@ -229,8 +229,8 @@ cc_test(
"//tensorflow/compiler/tf2xla:xla_compiler", "//tensorflow/compiler/tf2xla:xla_compiler",
"//tensorflow/compiler/tf2xla/kernels:xla_ops", "//tensorflow/compiler/tf2xla/kernels:xla_ops",
"//tensorflow/core:core_cpu", "//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:test", "//tensorflow/core:test",
"//tensorflow/core:test_main", "//tensorflow/core:test_main",
"//tensorflow/core:testlib", "//tensorflow/core:testlib",

View File

@ -18,11 +18,11 @@ limitations under the License.
#include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/framework/ops.h"
#include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/function_testlib.h" #include "tensorflow/core/framework/function_testlib.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/graph/graph_constructor.h" #include "tensorflow/core/graph/graph_constructor.h"
#include "tensorflow/core/graph/graph_def_builder.h" #include "tensorflow/core/graph/graph_def_builder.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
namespace { namespace {

View File

@ -19,11 +19,11 @@ limitations under the License.
#include "tensorflow/cc/ops/function_ops.h" #include "tensorflow/cc/ops/function_ops.h"
#include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/function_testlib.h" #include "tensorflow/core/framework/function_testlib.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/graph/graph_constructor.h" #include "tensorflow/core/graph/graph_constructor.h"
#include "tensorflow/core/graph/graph_def_builder.h" #include "tensorflow/core/graph/graph_def_builder.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
namespace { namespace {

View File

@ -1381,6 +1381,7 @@ tf_cuda_library(
"framework/unique_tensor_references.h", "framework/unique_tensor_references.h",
"util/command_line_flags.h", "util/command_line_flags.h",
"util/env_var.h", "util/env_var.h",
"util/equal_graph_def.h",
"util/presized_cuckoo_map.h", "util/presized_cuckoo_map.h",
"util/tensor_slice_set.h", "util/tensor_slice_set.h",
"util/tensor_slice_util.h", "util/tensor_slice_util.h",
@ -1952,7 +1953,6 @@ tf_cc_tests(
"framework/unique_tensor_references_test.cc", "framework/unique_tensor_references_test.cc",
"graph/algorithm_test.cc", "graph/algorithm_test.cc",
"graph/edgeset_test.cc", "graph/edgeset_test.cc",
"graph/equal_graph_def_test.cc",
"graph/graph_def_builder_test.cc", "graph/graph_def_builder_test.cc",
"graph/graph_partition_test.cc", "graph/graph_partition_test.cc",
"graph/graph_test.cc", "graph/graph_test.cc",
@ -1964,6 +1964,7 @@ tf_cc_tests(
"util/bcast_test.cc", "util/bcast_test.cc",
"util/command_line_flags_test.cc", "util/command_line_flags_test.cc",
"util/device_name_utils_test.cc", "util/device_name_utils_test.cc",
"util/equal_graph_def_test.cc",
"util/events_writer_test.cc", "util/events_writer_test.cc",
"util/example_proto_fast_parsing_test.cc", "util/example_proto_fast_parsing_test.cc",
"util/example_proto_helper_test.cc", "util/example_proto_helper_test.cc",

View File

@ -21,9 +21,9 @@ limitations under the License.
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_def.pb.h" #include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/framework/op_def_builder.h" #include "tensorflow/core/framework/op_def_builder.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
namespace { namespace {

View File

@ -24,7 +24,6 @@ limitations under the License.
#include "tensorflow/cc/ops/random_ops.h" #include "tensorflow/cc/ops/random_ops.h"
#include "tensorflow/cc/ops/sendrecv_ops.h" #include "tensorflow/cc/ops/sendrecv_ops.h"
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/graph/graph.h" #include "tensorflow/core/graph/graph.h"
#include "tensorflow/core/graph/graph_constructor.h" #include "tensorflow/core/graph/graph_constructor.h"
#include "tensorflow/core/graph/graph_def_builder.h" #include "tensorflow/core/graph/graph_def_builder.h"
@ -34,6 +33,7 @@ limitations under the License.
#include "tensorflow/core/platform/protobuf.h" #include "tensorflow/core/platform/protobuf.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/public/version.h" #include "tensorflow/core/public/version.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
namespace { namespace {

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/core/graph/equal_graph_def.h" #include "tensorflow/core/util/equal_graph_def.h"
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/core/graph/equal_graph_def.h" #include "tensorflow/core/util/equal_graph_def.h"
#include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op.h"

View File

@ -21,9 +21,9 @@ limitations under the License.
#include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/allocator.h"
#include "tensorflow/core/framework/log_memory.h" #include "tensorflow/core/framework/log_memory.h"
#include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/lib/core/coding.h" #include "tensorflow/core/lib/core/coding.h"
#include "tensorflow/core/platform/types.h" #include "tensorflow/core/platform/types.h"
#include "tensorflow/core/util/equal_graph_def.h"
#include "tensorflow/python/lib/core/ndarray_tensor_bridge.h" #include "tensorflow/python/lib/core/ndarray_tensor_bridge.h"
namespace tensorflow { namespace tensorflow {

View File

@ -45,8 +45,8 @@ tf_cc_test(
":transform_utils", ":transform_utils",
"//tensorflow/cc:cc_ops", "//tensorflow/cc:cc_ops",
"//tensorflow/core:core_cpu", "//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework", "//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc", "//tensorflow/core:protos_all_cc",
"//tensorflow/core:test", "//tensorflow/core:test",

View File

@ -24,11 +24,11 @@ limitations under the License.
// The return value is 0 if the graphs are equal, 1 if they're different, and -1 // The return value is 0 if the graphs are equal, 1 if they're different, and -1
// if there was a problem. // if there was a problem.
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/init_main.h" #include "tensorflow/core/platform/init_main.h"
#include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/util/command_line_flags.h" #include "tensorflow/core/util/command_line_flags.h"
#include "tensorflow/core/util/equal_graph_def.h"
#include "tensorflow/tools/graph_transforms/transform_utils.h" #include "tensorflow/tools/graph_transforms/transform_utils.h"
namespace tensorflow { namespace tensorflow {

View File

@ -19,12 +19,12 @@ limitations under the License.
#include "tensorflow/cc/ops/nn_ops.h" #include "tensorflow/cc/ops/nn_ops.h"
#include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/framework/tensor_testutil.h"
#include "tensorflow/core/graph/equal_graph_def.h"
#include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/lib/io/path.h" #include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/test_benchmark.h" #include "tensorflow/core/platform/test_benchmark.h"
#include "tensorflow/core/public/session.h" #include "tensorflow/core/public/session.h"
#include "tensorflow/core/util/equal_graph_def.h"
namespace tensorflow { namespace tensorflow {
namespace graph_transforms { namespace graph_transforms {