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

Method tearDown

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

Source from the content-addressed store, hash-verified

468 self.pipeline_4bit.enable_model_cpu_offload()
469
470 def tearDown(self):
471 del self.pipeline_4bit
472
473 gc.collect()
474 backend_empty_cache(torch_device)
475
476 def test_quality(self):
477 output = self.pipeline_4bit(

Callers

nothing calls this directly

Calls 1

backend_empty_cacheFunction · 0.50

Tested by

no test coverage detected