Environment Variables for Unit Tests#
Several environment variables can be set to control the behavior of unit tests and to enable extra diagnostic output when debugging the library. They are grouped below by the component they affect.
Test-Runner Variables (yobx/ext_test_case.py)#
These variables are read by the helpers in yobx.ext_test_case and
control which tests run and how their output is handled.
Variable |
Default |
Effect |
|---|---|---|
|
|
Set to |
|
(unset) |
Set to |
|
|
Set to |
|
|
Set to |
|
|
Integer verbosity level exposed via the
|
|
(unset) |
Set to |
|
|
Set to |
Other Variables#
Environment variables used by the graph builder, shape-inference engine, native graph optimizer, and PyTorch exporter are documented in the dedicated sections below:
Debugging GraphBuilder with Environment Variables —
GraphBuilderand shape-inference environment variables (ONNXSTOP*,ONNXCST,NULLSHAPE,ONNXSHAPECOMPUTE,PRINTNAME, …).Diagnostics — shape-inference debugging variables.
l-design-graph-builder-optimization — native graph-optimization notes (
LOG_PATTERN_OPTIMIZE,PATTERN,DROPPATTERN, …).Torch Converters to ONNX — PyTorch exporter variables (
PRINT_EXPORTED_PROGRAM,PRINT_GRAPH_MODULE,ONNXVERBOSE,ATENDEBUG, …).