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.
1 parent ee83c00 commit f275762Copy full SHA for f275762
edward2/tensorflow/layers/random_feature.py
@@ -185,6 +185,10 @@ def __init__(self,
185
def build(self, input_shape):
186
gp_feature_dim = input_shape[-1]
187
188
+ # Convert gp_feature_dim to int value for TF1 compatibility.
189
+ if isinstance(gp_feature_dim, tf.compat.v1.Dimension):
190
+ gp_feature_dim = gp_feature_dim.value
191
+
192
# Posterior precision matrix for the GP' random feature coefficients.
193
self.precision_matrix = (
194
self.add_weight(
0 commit comments