xla icon indicating copy to clipboard operation
xla copied to clipboard

Remove pointer to previous Python frame on Traceback frame.

Open copybara-service[bot] opened this issue 2 years ago • 0 comments

Remove pointer to previous Python frame on Traceback frame.

This removes Traceback->Frame->f_back.

The context for this change: I want to attach Tracebacks to JAX run-time errors (checkify) that point to the source location where the error happened. Python tracebacks have frames which keep a reference to their locals. These locals can be tracers, which result in tracer leaks. xla Traceback creates its own frame without locals, but still keeps a reference to the previous frame which is a regular Python frame (with a reference to its locals).

copybara-service[bot] avatar Feb 17 '23 17:02 copybara-service[bot]