mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Fix test_auto_backbone_timm_model_from_pretrained (#34877)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
a464afbe2a
commit
a830df2909
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ class AutoModelTest(unittest.TestCase):
|
|||
|
||||
# Check kwargs are correctly passed to the backbone
|
||||
model = AutoBackbone.from_pretrained("resnet18", use_timm_backbone=True, out_indices=(-2, -1))
|
||||
self.assertEqual(model.out_indices, (-2, -1))
|
||||
self.assertEqual(model.out_indices, [-2, -1])
|
||||
|
||||
# Check out_features cannot be passed to Timm backbones
|
||||
with self.assertRaises(ValueError):
|
||||
|
|
|
|||
Loading…
Reference in a new issue