You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MLIR] Add type checking in JVPOp::verifySymbolUses (#1020)
**Context:** Add type checking in the JVP MLIR operation like we have in
the equivalent VJP operation.
**Description of the Change:** In `JVPOp::verifySymbolUses()`, gather up
the data types of the tangent parameters and check them one by one
against the data types of the corresponding callee input types, in a
similar manner as is currently done in `VJPOp::verifySymbolUses()`.
**Benefits:** The goal is to avoid triggering [this
assert](https://github.com/PennyLaneAI/catalyst/blob/6c0ed0b528119b78bc32172780350ff1bc760424/mlir/lib/Gradient/Utils/EinsumLinalgGeneric.cpp#L100)
by doing the type checking earlier and printing a more descriptive error
message.
**Possible Drawbacks:** None.
**Related GitHub Issues:**
[sc-48792]
---------
Co-authored-by: Romain Moyard <[email protected]>
0 commit comments