catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

[MLIR] Mark `debug.callbacks` as inactive functions.

Open erick-xanadu opened this issue 1 year ago • 1 comments

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]

erick-xanadu avatar May 02 '24 13:05 erick-xanadu