MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / setUp

Method setUp

diffusers/tests/pipelines/test_pipelines.py:1788–1792  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1786@require_torch_gpu
1787class PipelineSlowTests(unittest.TestCase):
1788 def setUp(self):
1789 # clean up the VRAM before each test
1790 super().setUp()
1791 gc.collect()
1792 torch.cuda.empty_cache()
1793
1794 def tearDown(self):
1795 # clean up the VRAM after each test

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected