data
DiagnosisReport
DiagnosisReport(total_ops: int, registered: list[OpInfo], grad_sinks: list[OpInfo], uncovered: list[OpInfo], recommendation: str)Result of diagnose.
Holds three parallel buckets of OpInfo plus a one-line
recommendation. The class is immutable; __str__ renders a
short human-readable summary suitable for logs.
Attributes
total_opsintSum of every op occurrence in the trace.
registeredlist[OpInfo]Ops with a registered
VjpEmitter — real gradient.grad_sinkslist[OpInfo]Ops in the walker's
no_grad_ops set — gradient flow stops
here by design (not a fallback).uncoveredlist[OpInfo]Ops without an emitter and not in the sink set — will trigger
soft-fallback to MPSGraph autograd (or hard-fail under
LUCID_MANUAL_VJP_REQUIRE=1).recommendationstrOne-line summary of fallback risk.
Used by 1
Constructors
1dunder
__init__
→None__init__(total_ops: int, registered: list[OpInfo], grad_sinks: list[OpInfo], uncovered: list[OpInfo], recommendation: str)Wrap fn so it satisfies the nn.Module contract.
Parameters
fncallableThe plain callable the user passed to
compile.
Stored unwrapped; invoked verbatim on every forward.