Skip to content

Commit 723f839

Browse files
Edward2 Teamedward-bot
Edward2 Team
authored andcommitted
Internal change
PiperOrigin-RevId: 707299915
1 parent 316cd52 commit 723f839

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

edward2/tensorflow/layers/gaussian_process.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,11 @@ def build(self, input_shape=None):
406406
def call_weights(self):
407407
"""Calls any weights if the initializer is itself a layer."""
408408
if isinstance(self.inducing_inputs_initializer, tf.keras.layers.Layer):
409+
assert self.conditional_inputs is not None
409410
self.conditional_inputs = self.inducing_inputs_initializer(
410411
self.conditional_inputs.shape, self.dtype)
411412
if isinstance(self.inducing_outputs_initializer, tf.keras.layers.Layer):
413+
assert self.conditional_outputs is not None
412414
self.conditional_outputs = self.inducing_outputs_initializer(
413415
self.conditional_outputs.shape, self.dtype)
414416

0 commit comments

Comments
 (0)