Register the custom-function bindings into a pybind11 module.
Exposes three Python-visible names under the receiving module:
FunctionCtx— opaque shared-pointer class withsave_for_backward(*tensors), thesaved_tensorsproperty, and permissive__setattr__/__getattr__for extras._PythonBackwardNode— internalNodesubclass with read/writectxandbackward_fnfields._register_python_backward_node(output, node, inputs)— wiresnodeinto the autograd graph asoutput'sgrad_fn, materialisingAccumulateGradnodes for any leaves that need them and recording version counters for in-place mutation checks.
See Also
lucid.autograd._python_node — Python-side caller of
_register_python_backward_node.
Parameters
mpy::module_&The pybind11 module to register into. Called once during engine module initialisation.