Skip to content

Commit f0217c0

Browse files
committed
fix remaining usage of depth and width for MLP
1 parent 411532a commit f0217c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bayesflow/experimental/cif/conditional_gaussian.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections.abc import Sequence
12
import keras
23
from keras.saving import register_keras_serializable
34
import numpy as np
@@ -33,8 +34,8 @@ def __init__(self, depth: int = 4, width: int = 128, activation: str = "swish",
3334
"""
3435

3536
super().__init__(**keras_kwargs(kwargs))
36-
self.means = MLP(depth=depth, width=width, activation=activation)
37-
self.stds = MLP(depth=depth, width=width, activation=activation)
37+
self.means = MLP([width] * depth, activation=activation)
38+
self.stds = MLP([width] * depth, activation=activation)
3839
self.output_projector = keras.layers.Dense(None)
3940

4041
def build(self, input_shape: Shape) -> None:

0 commit comments

Comments
 (0)