File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
tensorflow_probability/python Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ multi_substrate_py_library(
344
344
srcs = ["implementation_selection.py" ],
345
345
deps = [
346
346
# tensorflow dep,
347
- "//tensorflow_probability/python/internal/backend/numpy" ,
348
347
],
349
348
)
350
349
@@ -757,7 +756,6 @@ multi_substrate_py_library(
757
756
# tensorflow dep,
758
757
"//tensorflow_probability/python/bijectors:bijector" ,
759
758
"//tensorflow_probability/python/internal:empirical_statistical_testing" ,
760
- "//tensorflow_probability/python/internal/backend/numpy" ,
761
759
"//tensorflow_probability/python/util:deferred_tensor" ,
762
760
"//tensorflow_probability/python/util:seed_stream" ,
763
761
],
Original file line number Diff line number Diff line change 34
34
from tensorflow_probability .python .internal import empirical_statistical_testing
35
35
from tensorflow_probability .python .internal import samplers
36
36
from tensorflow_probability .python .internal import test_combinations
37
- from tensorflow_probability .python .internal .backend .numpy import ops
38
37
from tensorflow_probability .python .util .deferred_tensor import DeferredTensor
39
38
from tensorflow_probability .python .util .deferred_tensor import TransformedVariable
40
39
from tensorflow_probability .python .util .seed_stream import SeedStream
@@ -868,7 +867,7 @@ def f(test_fn_or_class):
868
867
"""Decorator."""
869
868
if JAX_MODE :
870
869
return test_fn_or_class
871
- if tf . Variable != ops . NumpyVariable :
870
+ if not NUMPY_MODE :
872
871
return test_fn_or_class
873
872
874
873
reason = 'Test disabled for Numpy missing functionality: {}' .format (
@@ -912,7 +911,7 @@ def tf_tape_safety_test(test_fn):
912
911
"""Only run a test of TF2 tape safety against the TF backend."""
913
912
914
913
def new_test (self , * args , ** kwargs ):
915
- if JAX_MODE or ( tf . Variable == ops . NumpyVariable ) :
914
+ if JAX_MODE or NUMPY_MODE :
916
915
self .skipTest ('Tape-safety tests are only run against TensorFlow.' )
917
916
return test_fn (self , * args , ** kwargs )
918
917
Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ multi_substrate_py_library(
181
181
deps = [
182
182
# tensorflow dep,
183
183
"//tensorflow_probability/python/internal:tensor_util" ,
184
- "//tensorflow_probability/python/internal/backend/numpy:tf_inspect" ,
185
184
],
186
185
)
187
186
Original file line number Diff line number Diff line change 17
17
import tensorflow .compat .v2 as tf
18
18
19
19
from tensorflow_probability .python .internal import tensor_util
20
- from tensorflow_probability .python .internal . backend . numpy import tf_inspect
20
+ from tensorflow .python .util import tf_inspect # pylint: disable=g-direct-tensorflow-import
21
21
22
22
23
23
__all__ = [
You can’t perform that action at this time.
0 commit comments