DiagnosticKind#
- class braintrace.DiagnosticKind(*values)[source]#
Machine-readable reason for a
CompilationRecord.A string-valued enumeration naming the exact decision the ETrace compiler made. Every decision maps to exactly one
DiagnosticKindso tests can assert onCompilationRecord.kindrather than parsing message strings.Notes
The members fall into a few families: an inclusion marker (
RELATION_INCLUDED), exclusion reasons (theRELATION_EXCLUDED_*members), a path-classification marker (RELATION_PARTIAL_PATH), and a set of structural observations about the jaxpr (nestedjit, control flow, multi-output primitives, state mismatches, and so on).