Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704263127
  • Loading branch information
Edward2 Team authored and edward-bot committed Dec 10, 2024
1 parent b33fb98 commit f7ad7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edward2/tensorflow/layers/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def call_weights(self):
self.recurrent_kernel = self.recurrent_initializer(
self.recurrent_kernel.shape, self.dtype)
if isinstance(self.bias_initializer, tf.keras.layers.Layer):
if self.bias is None:
raise ValueError('self.bias is None.')
self.bias = self.bias_initializer(self.bias.shape, self.dtype)
self.called_weights = True

Expand Down

0 comments on commit f7ad7c7

Please sign in to comment.