MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / require_torchsde

Function require_torchsde

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

286
287
288def require_torchsde(test_case):
289 """
290 Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
291 """
292 return unittest.skipUnless(is_torchsde_available(), "test requires torchsde")(test_case)
293
294
295def require_peft_backend(test_case):

Callers

nothing calls this directly

Calls 1

is_torchsde_availableFunction · 0.85

Tested by

no test coverage detected