chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+460
View File
@@ -0,0 +1,460 @@
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 = "linalg_impl",
srcs = ["linalg_impl.py"],
strict_deps = True,
deps = [
"//tensorflow/python/framework:constant_op",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:cond",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:linalg_ops",
"//tensorflow/python/ops:linalg_ops_gen",
"//tensorflow/python/ops:map_fn",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:special_math_ops",
"//tensorflow/python/ops:stateless_random_ops",
"//tensorflow/python/ops:while_loop",
"//tensorflow/python/util:dispatch",
"//tensorflow/python/util:tf_export",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_util",
srcs = ["linear_operator_util.py"],
strict_deps = True,
deps = [
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/module",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:linalg_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:variables",
"//tensorflow/python/util:nest",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_low_rank_update",
srcs = ["linear_operator_low_rank_update.py"],
strict_deps = True,
deps = [
":linear_operator",
":linear_operator_diag",
":linear_operator_identity",
":linear_operator_util",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:linalg_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/platform:tf_logging",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_circulant",
srcs = ["linear_operator_circulant.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
":property_hint_util",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops/distributions:util",
"//tensorflow/python/ops/signal:fft_ops",
"//tensorflow/python/util:tf_export",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_identity",
srcs = ["linear_operator_identity.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_diag",
":linear_operator_util",
":property_hint_util",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_kronecker",
srcs = ["linear_operator_kronecker.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
"//tensorflow/python/framework:common_shapes",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:errors",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "property_hint_util",
srcs = ["property_hint_util.py"],
strict_deps = True,
)
py_library(
name = "linear_operator_block_lower_triangular",
srcs = ["linear_operator_block_lower_triangular.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_addition",
":linear_operator_full_matrix",
":linear_operator_identity",
":linear_operator_util",
"//tensorflow/python/framework:common_shapes",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:nest",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator",
srcs = [
"linear_operator.py",
"linear_operator_adjoint.py",
"linear_operator_composition.py",
"linear_operator_inversion.py",
"linear_operator_lower_triangular.py",
],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator_util",
":property_hint_util",
":slicing",
"//tensorflow/python/framework:common_shapes",
"//tensorflow/python/framework:composite_tensor",
"//tensorflow/python/framework:composite_tensor_gradient",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/framework:tensor_spec",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/framework:type_spec",
"//tensorflow/python/framework:type_spec_registry",
"//tensorflow/python/module",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:linalg_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:resource_variable_ops",
"//tensorflow/python/ops:variables",
"//tensorflow/python/platform:tf_logging",
"//tensorflow/python/trackable:data_structures",
"//tensorflow/python/util:deprecation",
"//tensorflow/python/util:dispatch",
"//tensorflow/python/util:nest",
"//tensorflow/python/util:tf_export",
"//tensorflow/python/util:variable_utils",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_tridiag",
srcs = ["linear_operator_tridiag.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_gen",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:manip_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_toeplitz",
srcs = ["linear_operator_toeplitz.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_circulant",
":linear_operator_util",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops/signal:fft_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_block_diag",
srcs = ["linear_operator_block_diag.py"],
strict_deps = True,
deps = [
":linear_operator",
":linear_operator_util",
":property_hint_util",
"//tensorflow/python/framework:common_shapes",
"//tensorflow/python/framework:dtypes",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_test_util",
srcs = ["linear_operator_test_util.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator_util",
"//tensorflow/python/eager:backprop",
"//tensorflow/python/eager:context",
"//tensorflow/python/eager:def_function",
"//tensorflow/python/framework:composite_tensor",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:random_seed",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/framework:test_lib",
"//tensorflow/python/module",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:gradients_impl",
"//tensorflow/python/ops:linalg_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:random_ops",
"//tensorflow/python/ops:sort_ops",
"//tensorflow/python/ops:variables",
"//tensorflow/python/ops:while_v2",
"//tensorflow/python/platform:client_testlib",
"//tensorflow/python/saved_model:load",
"//tensorflow/python/saved_model:nested_structure_coder",
"//tensorflow/python/saved_model:save",
"//tensorflow/python/util:nest",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_permutation",
srcs = ["linear_operator_permutation.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:sort_ops",
"//tensorflow/python/util:tf_export",
"//third_party/py/numpy",
],
)
py_library(
name = "linalg",
srcs = ["linalg.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_block_diag",
":linear_operator_block_lower_triangular",
":linear_operator_circulant",
":linear_operator_diag",
":linear_operator_full_matrix",
":linear_operator_householder",
":linear_operator_identity",
":linear_operator_kronecker",
":linear_operator_low_rank_update",
":linear_operator_permutation",
":linear_operator_toeplitz",
":linear_operator_tridiag",
":linear_operator_zeros",
],
)
py_library(
name = "linear_operator_full_matrix",
srcs = ["linear_operator_full_matrix.py"],
strict_deps = True,
deps = [
":linear_operator",
":linear_operator_util",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_householder",
srcs = ["linear_operator_householder.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
"//tensorflow/python/framework:errors",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/ops:nn",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "slicing",
srcs = ["slicing.py"],
strict_deps = True,
deps = [
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/util:nest",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_zeros",
srcs = ["linear_operator_zeros.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
"//tensorflow/python/framework:errors",
"//tensorflow/python/framework:for_generated_wrappers",
"//tensorflow/python/framework:tensor_util",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:array_ops_stack",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:control_flow_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
"//third_party/py/numpy",
],
)
py_library(
name = "linear_operator_diag",
srcs = ["linear_operator_diag.py"],
strict_deps = True,
deps = [
":linalg_impl",
":linear_operator",
":linear_operator_util",
":property_hint_util",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_conversion",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
"//tensorflow/python/ops:math_ops",
"//tensorflow/python/util:tf_export",
],
)
py_library(
name = "linear_operator_addition",
srcs = ["linear_operator_addition.py"],
strict_deps = True,
deps = [
":linear_operator",
":linear_operator_diag",
":linear_operator_full_matrix",
":linear_operator_identity",
"//tensorflow/python/framework:ops",
"//tensorflow/python/framework:tensor_shape",
"//tensorflow/python/ops:array_ops",
"//tensorflow/python/ops:check_ops",
],
)