(self)
| 1163 | |
| 1164 | class PipelineFastTests(unittest.TestCase): |
| 1165 | def setUp(self): |
| 1166 | # clean up the VRAM before each test |
| 1167 | super().setUp() |
| 1168 | gc.collect() |
| 1169 | torch.cuda.empty_cache() |
| 1170 | |
| 1171 | def tearDown(self): |
| 1172 | # clean up the VRAM after each test |