PennyLaneAI / PennyLaneAI/catalyst

Improve error handling in callbacks when users use incorrect type annotations

Open
#849 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.