MCPcopy
hub / github.com/huggingface/diffusers / require_torch_accelerator_with_fp64

Function require_torch_accelerator_with_fp64

tests/testing_utils.py:592–596  ·  view source on GitHub ↗

Decorator marking a test that requires an accelerator with support for the FP64 data type.

(test_case)

Source from the content-addressed store, hash-verified

590
591
592def require_torch_accelerator_with_fp64(test_case):
593 """Decorator marking a test that requires an accelerator with support for the FP64 data type."""
594 return pytest.mark.skipif(
595 not _is_torch_fp64_available(torch_device), reason="test requires accelerator with fp64 support"
596 )(test_case)
597
598
599def require_big_gpu_with_torch_cuda(test_case):

Callers

nothing calls this directly

Calls 1

_is_torch_fp64_availableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…