We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2eba9ac + 74c6b0e commit 7aa2f5dCopy full SHA for 7aa2f5d
tensorflow_probability/python/layers/distribution_layer.py
@@ -68,8 +68,11 @@
68
'VariationalGaussianProcess',
69
]
70
71
-
72
-tf.keras.__internal__.utils.register_symbolic_tensor_type(dtc._TensorCoercible) # pylint: disable=protected-access
+try:
+ k_u = tf.keras.__internal__.utils
73
+except:
74
+ from keras.utils import tf_utils as k_u
75
+k_u.register_symbolic_tensor_type(dtc._TensorCoercible) # pylint: disable=protected-access
76
77
78
def _event_size(event_shape, name=None):
0 commit comments