Skip to content

Commit

Permalink
Remove jax and numpy substrates from the main tensorflow_probability …
Browse files Browse the repository at this point in the history
…BUILD

target.

PiperOrigin-RevId: 613574866
  • Loading branch information
ThomasColthurst authored and tensorflower-gardener committed Mar 7, 2024
1 parent 8947615 commit 9982c09
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tensorflow_probability/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ licenses(["notice"])

exports_files(["LICENSE"])

# The public target for the TensorFlow version of TFP.
py_library(
name = "tensorflow_probability",
srcs = ["__init__.py"],
Expand All @@ -42,7 +43,6 @@ py_library(
# "//tensorflow_probability/google/staging", # DisableOnExport
# "//tensorflow_probability/google/tfp_google", # DisableOnExport
"//tensorflow_probability/python",
"//tensorflow_probability/substrates",
],
)

Expand Down
1 change: 0 additions & 1 deletion tensorflow_probability/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# Contributors to the `python/` dir should not alter this file; instead update
# `python/__init__.py` as necessary.

from tensorflow_probability import substrates
# from tensorflow_probability.google import staging # DisableOnExport
# from tensorflow_probability.google import tfp_google # DisableOnExport
from tensorflow_probability.python import * # pylint: disable=wildcard-import
Expand Down
3 changes: 1 addition & 2 deletions tensorflow_probability/substrates/meta/rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
'from tensorflow_probability.python.internal.backend.numpy.compat '
'import v2',
'import tensorflow_probability as tfp':
'import tensorflow_probability as tfp; '
'tfp = tfp.substrates.numpy',
'from tensorflow_probability.substrates import numpy as tfp',
('from tensorflow.python.framework '
'import composite_tensor'):
('from tensorflow_probability.python.internal.backend.numpy '
Expand Down

0 comments on commit 9982c09

Please sign in to comment.