Files
WeHub Mirror 16d3f15320
ARM CI / build (3.10) (push) Has been cancelled
cffconvert / validate (push) Has been cancelled
Creates a GitHub Issue when a PR Rolled back via Commit to Master / create-issue-on-pr-rollback (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
WeHub snapshot of ee606724a5c2f63bf60704cb3e1b169618993fd9
2026-08-07 16:11:07 +08:00

76 lines
3.1 KiB
Python

# Copyright 2026 The TensorFlow Authors. 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.
# ==============================================================================
# Description:
# Python Client Code of the TensorFlow Debugger (tfdbg).
#
# Public target(s):
#
# ":debug_py": Public Python methods and classes of tfdbg.
# For API documentation, see https://www.tensorflow.org/api_docs/python/tfdbg
# For a user interface walkthrough, see https://www.tensorflow.org/guide/debugger
# ":grpc_debug_server": Server interface for grpc:// debug URLs.
load("@xla//third_party/rules_python/python:py_library.bzl", "py_library")
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"],
)
py_library(
name = "debug_py",
srcs = ["__init__.py"],
strict_deps = True,
tags = ["keep_dep"], # Generated files need dependencies that build_cleaner would remove
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python/debug/lib:check_numerics_callback",
"//tensorflow/python/debug/lib:debug_data",
"//tensorflow/python/debug/lib:debug_events_monitors",
"//tensorflow/python/debug/lib:debug_events_reader",
"//tensorflow/python/debug/lib:debug_gradients",
"//tensorflow/python/debug/lib:debug_graphs",
"//tensorflow/python/debug/lib:debug_utils",
"//tensorflow/python/debug/lib:dumping_callback",
"//tensorflow/python/debug/lib:dumping_callback_test_lib",
"//tensorflow/python/debug/lib:grpc_debug_server",
"//tensorflow/python/debug/lib:grpc_debug_test_server",
"//tensorflow/python/debug/wrappers:dumping_wrapper",
"//tensorflow/python/debug/wrappers:framework",
"//tensorflow/python/debug/wrappers:grpc_wrapper",
"//tensorflow/python/debug/wrappers:hooks",
"//tensorflow/python/debug/wrappers:local_cli_wrapper",
"//tensorflow/python/util:all_util",
],
)
# Transitive dependencies of this target will be included in the pip package.
py_library(
name = "debug_pip",
data = ["//tensorflow/python/debug/lib:grpc_tensorflow_server"],
strict_deps = True,
deps = [
":debug_py",
"//tensorflow/python/debug/cli:cli_test_utils",
"//tensorflow/python/debug/cli:offline_analyzer_lib",
"//tensorflow/python/debug/lib:grpc_debug_test_server",
"//tensorflow/python/debug/lib:grpc_tensorflow_server_lib",
"//tensorflow/python/debug/lib:session_debug_testlib",
"//tensorflow/python/debug/lib:source_remote",
],
)