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

Method setUp

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

Source from the content-addressed store, hash-verified

1163
1164class 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

Callers 2

setUpMethod · 0.45
setUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected