提交 99d97e0d 编写于 作者: R Ross Wightman

Hopefully the last test update for this PR...

上级 11ae795e
......@@ -17,8 +17,8 @@ jobs:
matrix:
os: [ubuntu-latest, macOS-latest]
python: ['3.8']
torch: ['1.8.0']
torchvision: ['0.9.0']
torch: ['1.8.1']
torchvision: ['0.9.1']
runs-on: ${{ matrix.os }}
steps:
......
......@@ -73,7 +73,7 @@ def test_model_forward(model_name, batch_size):
model = create_model(model_name, pretrained=False)
model.eval()
input_size = _get_input_size(model, TARGET_FWD_SIZE)
input_size = _get_input_size(model=model, target=TARGET_FWD_SIZE)
if max(input_size) > MAX_FWD_SIZE:
pytest.skip("Fixed input size model > limit.")
inputs = torch.randn((batch_size, *input_size))
......@@ -221,7 +221,7 @@ def test_model_forward_features(model_name, batch_size):
expected_channels = model.feature_info.channels()
assert len(expected_channels) >= 4 # all models here should have at least 4 feature levels by default, some 5 or 6
input_size = _get_input_size(model, TARGET_FFEAT_SIZE)
input_size = _get_input_size(model=model, target=TARGET_FFEAT_SIZE)
if max(input_size) > MAX_FFEAT_SIZE:
pytest.skip("Fixed input size model > limit.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册