add unit test for inverted_residual: debug 3
parent
db364ef26a
commit
66224e96c5
|
@ -1,6 +1,5 @@
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
|
||||||
|
|
||||||
from mmseg.ops import InvertedResidual
|
from mmseg.ops import InvertedResidual
|
||||||
|
|
||||||
|
@ -39,7 +38,3 @@ def test_inv_residual():
|
||||||
x = torch.rand(1, 32, 64, 64)
|
x = torch.rand(1, 32, 64, 64)
|
||||||
output = inv_module(x)
|
output = inv_module(x)
|
||||||
assert output.shape == (1, 32, 64, 64)
|
assert output.shape == (1, 32, 64, 64)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue