DiagnosticKind

Contents

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 DiagnosticKind so tests can assert on CompilationRecord.kind rather than parsing message strings.

Notes

The members fall into a few families: an inclusion marker (RELATION_INCLUDED), exclusion reasons (the RELATION_EXCLUDED_* members), a path-classification marker (RELATION_PARTIAL_PATH), and a set of structural observations about the jaxpr (nested jit, control flow, multi-output primitives, state mismatches, and so on).