File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def test_classification_head(self):
137
137
138
138
self .assertEqual (cls_probs .shape [1 ], 10 )
139
139
140
- @requires_torch_greater_or_equal ("2.0.0 " )
140
+ @requires_torch_greater_or_equal ("2.0.1 " )
141
141
def test_save_load_with_hub_mixin (self ):
142
142
# instantiate model
143
143
model = smp .create_model (
@@ -173,7 +173,7 @@ def test_save_load_with_hub_mixin(self):
173
173
self .assertIn ("my_awesome_metric" , readme )
174
174
175
175
@slow_test
176
- @requires_torch_greater_or_equal ("2.0.0 " )
176
+ @requires_torch_greater_or_equal ("2.0.1 " )
177
177
def test_preserve_forward_output (self ):
178
178
from huggingface_hub import hf_hub_download
179
179
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class TestSegformerModel(base.BaseModelTester):
11
11
test_model_type = "segformer"
12
12
13
13
@slow_test
14
- @requires_torch_greater_or_equal ("2.0.0 " )
14
+ @requires_torch_greater_or_equal ("2.0.1 " )
15
15
def test_load_pretrained (self ):
16
16
hub_checkpoint = "smp-hub/segformer-b0-512x512-ade-160k"
17
17
You can’t perform that action at this time.
0 commit comments