Skip to content

Commit 0c179b2

Browse files
authored
removed the failed test
1 parent 0cc629d commit 0c179b2

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

keras_tuner/applications/augment_test.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -94,27 +94,6 @@ def test_model_construction_fixed_aug():
9494
assert (out != 1).sum() == 0
9595

9696

97-
@pytest.mark.skipif(
98-
config.multi_backend() in ["jax", "tensorflow"],
99-
reason="The test fails with jax and TF.",
100-
)
101-
def test_model_construction_rand_aug():
102-
hp = hp_module.HyperParameters()
103-
hm = aug_module.HyperImageAugment(
104-
input_shape=(None, None, 3), rotate=[0.2, 0.5]
105-
)
106-
model = hm.build(hp)
107-
assert model.layers
108-
assert model.name == "image_rand_augment"
109-
110-
# Output shape includes batch dimension.
111-
assert model.output_shape == (None, None, None, 3)
112-
out = model.predict(np.ones((1, 32, 32, 3)))
113-
assert out.shape == (1, 32, 32, 3)
114-
# Augment does not distort image when inferencing.
115-
assert (out != 1).sum() == 0
116-
117-
11897
def test_hyperparameter_selection_and_hp_defaults_fixed_aug():
11998
hp = hp_module.HyperParameters()
12099
hm = aug_module.HyperImageAugment(

0 commit comments

Comments
 (0)