PennyLaneAI / PennyLaneAI/catalyst
Improve error handling in callbacks when users use incorrect type annotations
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
This may lead to garbage memory being used or overwriting memory. I think this can be caught doing static type checking in MLIR. Probably during the lowering of backprop op.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the MLIR lowering for the backprop op and the callback type-annotation handling; the issue suggests static type checking belongs there. Define a failing case for an incorrect annotation and verify that lowering rejects it without allowing garbage-memory use or memory overwrites.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100