[CLAP] Fix few broken things (#21670)

* add `is_longer`

* fix docstring

* fix config class

* fix loss

* fix all doctests

* fix order

* fix last failing tests

---------

Co-authored-by: arthur.zucker@gmail.com <arthur.zucker@gmail.com>
This commit is contained in:
Younes Belkada
2023-02-17 11:32:14 +01:00
committed by GitHub
parent 3668ec1716
commit a8eb4f79f9
2 changed files with 8 additions and 6 deletions

View File

@@ -268,7 +268,7 @@ class ClapAudioModelTest(ModelTesterMixin, unittest.TestCase):
for model_name in CLAP_PRETRAINED_MODEL_ARCHIVE_LIST[:1]:
model = ClapAudioModelWithProjection.from_pretrained(model_name)
self.assertIsNotNone(model)
self.assertTrue(hasattr(model, "visual_projection"))
self.assertTrue(hasattr(model, "audio_projection"))
class ClapTextModelTester: