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

151 lines
4.6 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.
# ==============================================================================
load("@xla//third_party/rules_python/python:py_library.bzl", "py_library")
load("//tensorflow:tensorflow.default.bzl", "tf_py_strict_test")
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
licenses = ["notice"],
)
py_library(
name = "plugin_asset",
srcs = ["plugin_asset.py"],
strict_deps = True,
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python/framework:ops",
],
)
py_library(
name = "__init__",
srcs = ["__init__.py"],
strict_deps = True,
visibility = ["//visibility:public"],
)
py_library(
name = "summary_iterator",
srcs = ["summary_iterator.py"],
strict_deps = True,
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core:protos_all_py",
"//tensorflow/python/lib/io:tf_record",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "summary_py",
srcs = ["summary.py"],
strict_deps = True,
visibility = ["//visibility:public"],
deps = [
":tb_summary",
"//tensorflow/core:protos_all_py",
"//tensorflow/python/distribute:summary_op_util",
"//tensorflow/python/eager:context",
"//tensorflow/python/framework:constant_op",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:logging_ops_gen",
"//tensorflow/python/ops:summary_op_util",
"//tensorflow/python/ops:summary_ops_gen",
"//tensorflow/python/ops:summary_ops_v2",
"//tensorflow/python/summary/writer",
"//tensorflow/python/summary/writer:writer_cache",
"//tensorflow/python/training:training_util",
"//tensorflow/python/util:compat",
"//tensorflow/python/util:tf_export",
],
)
tf_py_strict_test(
name = "plugin_asset_test",
size = "small",
srcs = ["plugin_asset_test.py"],
deps = [
":plugin_asset",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:test_lib",
"//tensorflow/python/platform:test",
],
)
tf_py_strict_test(
name = "summary_iterator_test",
size = "small",
srcs = ["summary_iterator_test.py"],
deps = [
":summary_iterator",
":summary_py",
"//tensorflow/core:protos_all_py",
"//tensorflow/python/framework:test_lib",
"//tensorflow/python/platform:client_testlib",
"//tensorflow/python/summary/writer",
],
)
tf_py_strict_test(
name = "summary_test",
size = "small",
srcs = ["summary_test.py"],
deps = [
":summary_py",
"//tensorflow/core:protos_all_py",
"//tensorflow/python/framework:constant_op",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:errors",
"//tensorflow/python/framework:meta_graph",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:test_lib",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:summary_ops_v2",
"//tensorflow/python/ops:variables",
"//tensorflow/python/platform:client_testlib",
"//tensorflow/python/platform:test",
],
)
tf_py_strict_test(
name = "summary_v2_test",
size = "small",
srcs = ["summary_v2_test.py"],
deps = [
":summary_py",
":tb_summary",
"//tensorflow/python/framework:constant_op",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:test_lib",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:summary_ops_v2",
"//tensorflow/python/platform:client_testlib",
"//tensorflow/python/training:training_util",
],
)
py_library(
name = "tb_summary",
srcs = ["tb_summary.py"],
strict_deps = True,
visibility = ["//tensorflow:internal"],
deps = ["//tensorflow/python/util:tf_export"],
)