MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / require_torchsde

Function require_torchsde

diffusers/src/diffusers/utils/testing_utils.py:352–356  ·  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

350
351
352def require_torchsde(test_case):
353 """
354 Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
355 """
356 return unittest.skipUnless(is_torchsde_available(), "test requires torchsde")(test_case)
357
358
359def require_peft_backend(test_case):

Callers

nothing calls this directly

Calls 1

is_torchsde_availableFunction · 0.85

Tested by

no test coverage detected