Skip to content

Commit

Permalink
Merge b68c5c5 into b13cd06
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Fran authored Dec 22, 2022
2 parents b13cd06 + b68c5c5 commit 72aa051
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch

from mmedit.models.editors import Restormer


@pytest.mark.skipif(
torch.__version__ < '1.8.0',
reason='skip on torch<1.8 due to unsupported PixelUnShuffle')
def test_restormer_cpu():
"""Test Restormer."""

Expand Down Expand Up @@ -79,6 +83,9 @@ def test_restormer_cpu():
assert output.shape == (1, 3, 16, 16)


@pytest.mark.skipif(
torch.__version__ < '1.8.0',
reason='skip on torch<1.8 due to unsupported PixelUnShuffle')
def test_restormer_cuda():
net = Restormer(
inp_channels=3,
Expand Down

0 comments on commit 72aa051

Please sign in to comment.