MCPcopy Index your code
hub / github.com/huggingface/diffusers / tearDown

Method tearDown

tests/quantization/bnb/test_4bit.py:152–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 )
151
152 def tearDown(self):
153 if hasattr(self, "model_fp16"):
154 del self.model_fp16
155 if hasattr(self, "model_4bit"):
156 del self.model_4bit
157
158 gc.collect()
159 backend_empty_cache(torch_device)
160
161 def test_quantization_num_parameters(self):
162 r"""

Callers

nothing calls this directly

Calls 1

backend_empty_cacheFunction · 0.50

Tested by

no test coverage detected