STT-tensorflow/tensorflow/tools/optimization/BUILD
A. Unique TensorFlower 03bc963659 BUILD file cleanup
PiperOrigin-RevId: 334697755
Change-Id: I34b8a6d19c5e3733314707de345a891944657ce0
2020-09-30 16:08:07 -07:00

52 lines
1.5 KiB
Python

# Description:
# Utilities that perform useful transformations on graphs
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_binary",
"tf_cuda_library",
)
load("//tensorflow:tensorflow.bzl", "get_compatible_with_cloud")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
tf_cuda_library(
name = "optimization_pass_runner_lib",
srcs = ["optimization_pass_runner.cc"],
hdrs = ["optimization_pass_runner.h"],
compatible_with = get_compatible_with_cloud(),
deps = [
"//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_base",
"//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:framework_lite",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:tensorflow",
],
)
tf_cc_binary(
name = "gpu_optimization_pass_runner",
srcs = ["gpu_optimization_pass_runner_main.cc"],
deps = [
":optimization_pass_runner_lib",
"//tensorflow/compiler/jit:xla_cpu_jit",
"//tensorflow/compiler/jit:xla_gpu_jit",
"//tensorflow/compiler/tf2xla:xla_compiler",
"//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_base",
"//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:framework_lite",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:tensorflow",
"@com_google_absl//absl/strings",
],
)