spdl.pipeline.config.is_diagnostic_mode_enabled

is_diagnostic_mode_enabled() bool[source]

Check if the pipeline diagnostic mode is enabled.

Returns:

True if the SPDL_PIPELINE_DIAGNOSTIC_MODE environment variable is set to a truthy value, False otherwise.

Note

When diagnostic mode is enabled, build_pipeline() will create a pipeline that automatically runs profiling with profile_pipeline() and exits after completion.