ttnn.begin_trace_capture

ttnn.begin_trace_capture = <nanobind.nb_func object>

ttnn.MeshDevice, *, cq_id: Optional[ttnn.QueueId] = None) -> ttnn.MeshTraceId

Begins recording commands for a trace on the mesh device.

The trace is created under the currently active sub-device manager. The returned trace ID is scoped to that manager. If another manager is loaded later, reload the original manager before ending, executing, or releasing this trace.

Parameters:

mesh_device (ttnn.MeshDevice)Mesh device on which to capture the trace.

Keyword Arguments:

cq_id (Optional[ttnn.QueueId])Command queue to capture. Defaults to the current command queue.

Returns:

ttnn.MeshTraceIdID of the trace under the active sub-device manager.

Type:

begin_trace_capture(mesh_device