catalyst
catalyst copied to clipboard
[MLIR] Mark `debug.callbacks` as inactive functions.
Context: debug.callbacks will always be inactive functions when taking the gradient of them.
Description of the Change: Change pyregistry to inactive_callback and mark all inactive_callbacks as inactive.
Benefits: Inactive callbacks are inactive.
Notes:
- Future PRs will make active_callbacks through specialization and will call inactive_callback as a primitive.
- Future PR will re-enable callbacks in gradients.
[sc-60496]