Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
Radev committed May 14, 2024
1 parent faae8df commit d460e08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bayesflow/experimental/networks/resnet/hidden_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def call(self, inputs, training=False):
def get_config(self):
config = super().get_config()
config.update({
"units": self.activation_fn,
"residual": self.residual,
"spectral_norm": self.spectral_norm
"spectral_norm": self.spectral_norm,
"activation_fn": keras.saving.serialize_keras_object(self.activation_fn),
"dense_with_dropout": keras.saving.serialize_keras_object(self.dense_with_dropout)
})
return config

0 comments on commit d460e08

Please sign in to comment.