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

Function is_torch_compile

diffusers/src/diffusers/utils/testing_utils.py:229–236  ·  view source on GitHub ↗

Decorator marking a test that runs compile tests in the diffusers CI. Compile tests are skipped by default. Set the RUN_COMPILE environment variable to a truthy value to run them.

(test_case)

Source from the content-addressed store, hash-verified

227
228
229def is_torch_compile(test_case):
230 """
231 Decorator marking a test that runs compile tests in the diffusers CI.
232
233 Compile tests are skipped by default. Set the RUN_COMPILE environment variable to a truthy value to run them.
234
235 """
236 return unittest.skipUnless(_run_compile_tests, "test is torch compile")(test_case)
237
238
239def require_torch(test_case):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected