We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65df73a commit dfd616eCopy full SHA for dfd616e
tests/models/musicgen_melody/test_modeling_musicgen_melody.py
@@ -31,6 +31,7 @@
31
)
32
from transformers.testing_utils import (
33
Expectations,
34
+ cleanup,
35
get_device_properties,
36
is_torch_available,
37
is_torchaudio_available,
@@ -1256,6 +1257,12 @@ class MusicgenMelodyIntegrationTests(unittest.TestCase):
1256
1257
def model(self):
1258
return MusicgenMelodyForConditionalGeneration.from_pretrained("ylacombe/musicgen-melody").to(torch_device)
1259
1260
+ def setUp(self):
1261
+ cleanup(torch_device, gc_collect=True)
1262
+
1263
+ def tearDown(self):
1264
1265
1266
@cached_property
1267
def processor(self):
1268
return MusicgenMelodyProcessor.from_pretrained("ylacombe/musicgen-melody")
0 commit comments