File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tensorflow_probability/python/distributions Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1014,6 +1014,7 @@ multi_substrate_py_library(
1014
1014
"//tensorflow_probability/python/internal:auto_composite_tensor" ,
1015
1015
"//tensorflow_probability/python/internal:dtype_util" ,
1016
1016
"//tensorflow_probability/python/internal:parameter_properties" ,
1017
+ "//tensorflow_probability/python/internal:prefer_static" ,
1017
1018
"//tensorflow_probability/python/internal:samplers" ,
1018
1019
"//tensorflow_probability/python/internal:tensor_util" ,
1019
1020
"//tensorflow_probability/python/util:deferred_tensor" ,
Original file line number Diff line number Diff line change 28
28
from tensorflow_probability .python .internal import auto_composite_tensor
29
29
from tensorflow_probability .python .internal import dtype_util
30
30
from tensorflow_probability .python .internal import parameter_properties
31
+ from tensorflow_probability .python .internal import prefer_static as ps
31
32
from tensorflow_probability .python .internal import samplers
32
33
from tensorflow_probability .python .internal import tensor_util
33
34
from tensorflow_probability .python .util .deferred_tensor import DeferredTensor
@@ -147,9 +148,7 @@ def __init__(self,
147
148
probs_or_logits ,
148
149
# pylint: disable=g-long-lambda
149
150
lambda _ : tf .broadcast_to (self ._inflated_loc ,
150
- tf .shape (probs_or_logits ))
151
- # pylint: enable=g-long-lambda
152
- ),
151
+ ps .shape (probs_or_logits ))),
153
152
atol = self ._inflated_loc_atol ,
154
153
rtol = self ._inflated_loc_rtol ,
155
154
validate_args = validate_args ,
You can’t perform that action at this time.
0 commit comments