Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tensorflow_probability/python/layers/distribution_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@
'VariationalGaussianProcess',
]


tf.keras.__internal__.utils.register_symbolic_tensor_type(dtc._TensorCoercible) # pylint: disable=protected-access
try:
k_u = tf.keras.__internal__.utils
except:
from keras.utils import tf_utils as k_u
k_u.register_symbolic_tensor_type(dtc._TensorCoercible) # pylint: disable=protected-access


def _event_size(event_shape, name=None):
Expand Down