Skip to content

Commit 3599d8d

Browse files
committed
fix assert statement in test
1 parent 0b09e55 commit 3599d8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_approximators/test_approximator_standardization/test_approximator_standardization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import keras
22
from tests.utils import assert_models_equal
3-
import numpy as np
43

54

65
def test_save_and_load(tmp_path, approximator, train_dataset, validation_dataset):
@@ -9,7 +8,8 @@ def test_save_and_load(tmp_path, approximator, train_dataset, validation_dataset
98
approximator.build(data_shapes)
109
for layer in approximator.standardize_layers.values():
1110
assert layer.built
12-
np.testing.assert_allclose([c.value.numpy() for c in layer.count], 0.0)
11+
for count in layer.count:
12+
assert count == 0.0
1313
approximator.compute_metrics(**train_dataset[0])
1414

1515
keras.saving.save_model(approximator, tmp_path / "model.keras")

0 commit comments

Comments
 (0)