Returns
This method returnsNone.
Example
Parameters
The context token returned by
set_context().If
True (default), flush pending traces for the current inference result before clearing. Set to False to skip flushing.Always use
clear_context() in a finally block to ensure proper cleanup, even if an exception occurs.