MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / setUpClass

Method setUpClass

examples/test_examples_utils.py:50–56  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

48class ExamplesTestsAccelerate(unittest.TestCase):
49 @classmethod
50 def setUpClass(cls):
51 super().setUpClass()
52 cls._tmpdir = tempfile.mkdtemp()
53 cls.configPath = os.path.join(cls._tmpdir, "default_config.yml")
54
55 write_basic_config(save_location=cls.configPath)
56 cls._launch_args = ["accelerate", "launch", "--config_file", cls.configPath]
57
58 @classmethod
59 def tearDownClass(cls):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected