Skip to content

Commit

Permalink
update test method to swin backbone
Browse files Browse the repository at this point in the history
  • Loading branch information
innat committed Mar 24, 2024
1 parent 204e4b1 commit 251495b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keras_cv/models/backbones/video_swin/video_swin_backbone_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,13 @@ def test_can_run_on_gray_video(self):
y = np.zeros((1, 48, 3, 3, 768))
model.compile(optimizer="adam", loss="mse", metrics=["mse"])
model.fit(x, y, epochs=1)

@pytest.mark.extra_large
def test_can_run_non_square_shape(self):
input_batch = np.ones(shape=(2, 8, 224, 256, 3))
model = VideoSwinBackbone(
input_shape=(8, 224, 256, 3),
include_rescaling=False,
num_classes=10,
)
model(input_batch)

0 comments on commit 251495b

Please sign in to comment.