Skip to content

Commit 4202554

Browse files
committed
add serializable
1 parent 29416d0 commit 4202554

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_networks/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import pytest
22

3-
from bayesflow.networks import MLP
3+
from bayesflow.networks import MLP, Sequential
44
from bayesflow.utils.tensor_utils import concatenate_valid
55
from bayesflow.utils.serialization import serializable
6-
import keras
76

87

98
@pytest.fixture()
@@ -19,7 +18,7 @@ def diffusion_model_edm_F():
1918

2019

2120
@serializable("bayesflow.networks")
22-
class ConcatenateMLP(keras.Layer):
21+
class ConcatenateMLP(Sequential):
2322
def __init__(self, widths):
2423
super().__init__()
2524
self.widths = widths

0 commit comments

Comments
 (0)