Skip to content

Commit 9afe430

Browse files
emilyfertigtensorflower-gardener
authored andcommitted
BREAKING CHANGE: Remove deprecated Affine and AffineLinearOperator bijectors.
PiperOrigin-RevId: 384801676
1 parent faba91e commit 9afe430

File tree

9 files changed

+14
-1596
lines changed

9 files changed

+14
-1596
lines changed

tensorflow_probability/python/bijectors/BUILD

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ multi_substrate_py_library(
4343
],
4444
deps = [
4545
":absolute_value",
46-
":affine",
47-
":affine_linear_operator",
4846
":ascending",
4947
":batch_normalization",
5048
":bijector",
@@ -172,29 +170,6 @@ multi_substrate_py_library(
172170
],
173171
)
174172

175-
multi_substrate_py_library(
176-
name = "affine_linear_operator",
177-
srcs = ["affine_linear_operator.py"],
178-
deps = [
179-
":bijector",
180-
# tensorflow dep,
181-
"//tensorflow_probability/python/internal:dtype_util",
182-
"//tensorflow_probability/python/internal:tensor_util",
183-
],
184-
)
185-
186-
multi_substrate_py_library(
187-
name = "affine",
188-
srcs = ["affine.py"],
189-
deps = [
190-
":bijector",
191-
# tensorflow dep,
192-
"//tensorflow_probability/python/internal:assert_util",
193-
"//tensorflow_probability/python/internal:distribution_util",
194-
"//tensorflow_probability/python/internal:dtype_util",
195-
],
196-
)
197-
198173
multi_substrate_py_library(
199174
name = "scale",
200175
srcs = ["scale.py"],
@@ -1100,32 +1075,6 @@ multi_substrate_py_test(
11001075
],
11011076
)
11021077

1103-
multi_substrate_py_test(
1104-
name = "affine_test",
1105-
size = "small",
1106-
srcs = ["affine_test.py"],
1107-
shard_count = 5,
1108-
tags = ["noasan"], # times out b/63678675
1109-
deps = [
1110-
":bijectors",
1111-
# numpy dep,
1112-
# tensorflow dep,
1113-
"//tensorflow_probability/python/internal:test_util",
1114-
],
1115-
)
1116-
1117-
multi_substrate_py_test(
1118-
name = "affine_linear_operator_test",
1119-
size = "small",
1120-
srcs = ["affine_linear_operator_test.py"],
1121-
deps = [
1122-
":bijectors",
1123-
# numpy dep,
1124-
# tensorflow dep,
1125-
"//tensorflow_probability/python/internal:test_util",
1126-
],
1127-
)
1128-
11291078
multi_substrate_py_test(
11301079
name = "scale_test",
11311080
size = "small",

tensorflow_probability/python/bijectors/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
# pylint: disable=unused-import,wildcard-import,line-too-long,g-importing-member
2222

2323
from tensorflow_probability.python.bijectors.absolute_value import AbsoluteValue
24-
from tensorflow_probability.python.bijectors.affine import Affine
25-
from tensorflow_probability.python.bijectors.affine_linear_operator import AffineLinearOperator
2624
from tensorflow_probability.python.bijectors.ascending import Ascending
2725
from tensorflow_probability.python.bijectors.batch_normalization import BatchNormalization
2826
from tensorflow_probability.python.bijectors.bijector import AutoCompositeTensorBijector
@@ -106,8 +104,6 @@
106104

107105
__all__ = [
108106
"AbsoluteValue",
109-
"Affine",
110-
"AffineLinearOperator",
111107
"Ascending",
112108
"AutoCompositeTensorBijector",
113109
"AutoregressiveNetwork",

0 commit comments

Comments
 (0)