A. Unique TensorFlower 034633f23b PY2 removal cleanup
PiperOrigin-RevId: 352106691
Change-Id: I382d53c64f0d29da430b8cb6d2395a2cb281509e
2021-01-15 16:48:57 -08:00

58 lines
1.5 KiB
Python

package(
default_visibility = [
"//tensorflow:__subpackages__",
],
licenses = ["notice"], # Apache 2.0
)
py_library(
name = "profiler",
srcs = ["__init__.py"],
srcs_version = "PY3",
deps = [
":profiler_analysis_pb2_grpc",
"//tensorflow/core/profiler:profiler_analysis_proto_py",
"//tensorflow/core/profiler/protobuf:trace_events_proto_py",
"//tensorflow/python:util",
],
)
py_library(
name = "profiler_analysis_pb2_grpc",
srcs = ["profiler_analysis_pb2_grpc.py"],
srcs_version = "PY3",
visibility = ["//visibility:public"],
deps = ["//tensorflow/core/profiler:profiler_analysis_proto_py"],
)
py_library(
name = "capture_tpu_profile_lib",
srcs = [
"capture_tpu_profile.py",
"version.py",
],
srcs_version = "PY3",
deps = [
"//tensorflow/python:client",
"//tensorflow/python:errors",
"//tensorflow/python:platform",
"//tensorflow/python:versions",
"//tensorflow/python/distribute/cluster_resolver:cluster_resolver_lib",
"//tensorflow/python/profiler:profiler_client",
"//tensorflow/python/profiler:profiler_v2",
"@absl_py//absl:app",
"@absl_py//absl/flags",
],
)
py_binary(
name = "capture_tpu_profile_bin",
srcs = ["capture_tpu_profile.py"],
main = "capture_tpu_profile.py",
python_version = "PY3",
deps = [
":capture_tpu_profile_lib",
"@absl_py//absl/flags",
],
)