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

Function require_torchsde

src/diffusers/utils/testing_utils.py:507–511  ·  view source on GitHub ↗

Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.

(test_case)

Source from the content-addressed store, hash-verified

505
506
507def require_torchsde(test_case):
508 """
509 Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
510 """
511 return unittest.skipUnless(is_torchsde_available(), "test requires torchsde")(test_case)
512
513
514def require_peft_backend(test_case):

Callers

nothing calls this directly

Calls 1

is_torchsde_availableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…