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

Method set_compile_backend

accelerator/hpu_accelerator.py:322–328  ·  view source on GitHub ↗
(self, backend)

Source from the content-addressed store, hash-verified

320 return self._compile_backend
321
322 def set_compile_backend(self, backend):
323 supported_backends = torch._dynamo.list_backends(exclude_tags=())
324 if backend in supported_backends:
325 self._compile_backend = backend
326 else:
327 raise ValueError(
328 f"{backend} not supported by {self.device_name()}. Supported Backends are {supported_backends}")

Callers

nothing calls this directly

Calls 1

device_nameMethod · 0.95

Tested by

no test coverage detected