Skip to content

Commit 9982c09

Browse files
Remove jax and numpy substrates from the main tensorflow_probability BUILD
target. PiperOrigin-RevId: 613574866
1 parent 8947615 commit 9982c09

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

tensorflow_probability/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ licenses(["notice"])
3434

3535
exports_files(["LICENSE"])
3636

37+
# The public target for the TensorFlow version of TFP.
3738
py_library(
3839
name = "tensorflow_probability",
3940
srcs = ["__init__.py"],
@@ -42,7 +43,6 @@ py_library(
4243
# "//tensorflow_probability/google/staging", # DisableOnExport
4344
# "//tensorflow_probability/google/tfp_google", # DisableOnExport
4445
"//tensorflow_probability/python",
45-
"//tensorflow_probability/substrates",
4646
],
4747
)
4848

tensorflow_probability/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# Contributors to the `python/` dir should not alter this file; instead update
1818
# `python/__init__.py` as necessary.
1919

20-
from tensorflow_probability import substrates
2120
# from tensorflow_probability.google import staging # DisableOnExport
2221
# from tensorflow_probability.google import tfp_google # DisableOnExport
2322
from tensorflow_probability.python import * # pylint: disable=wildcard-import

tensorflow_probability/substrates/meta/rewrite.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
'from tensorflow_probability.python.internal.backend.numpy.compat '
3737
'import v2',
3838
'import tensorflow_probability as tfp':
39-
'import tensorflow_probability as tfp; '
40-
'tfp = tfp.substrates.numpy',
39+
'from tensorflow_probability.substrates import numpy as tfp',
4140
('from tensorflow.python.framework '
4241
'import composite_tensor'):
4342
('from tensorflow_probability.python.internal.backend.numpy '

0 commit comments

Comments
 (0)