MCPcopy
hub / github.com/deepspeedai/DeepSpeed / __call__

Method __call__

tests/unit/common.py:158–164  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

156 ...
157
158 def __call__(self, request):
159 self._fixture_kwargs = self._get_fixture_kwargs(request, self.run)
160 world_size = self.world_size
161 if self.requires_cuda_env and not get_accelerator().is_available():
162 pytest.skip("only supported in accelerator environments.")
163
164 self._launch_with_file_store(request, world_size)
165
166 def _get_fixture_kwargs(self, request, func):
167 if not request:

Callers

nothing calls this directly

Calls 4

_get_fixture_kwargsMethod · 0.95
get_acceleratorFunction · 0.90
is_availableMethod · 0.45

Tested by

no test coverage detected