MCPcopy Create free account
hub / github.com/pytorch/executorch / is_end_of_command

Function is_end_of_command

examples/arm/visualize.py:91–94  ·  view source on GitHub ↗
(qread_offset: int, end_idx: int)

Source from the content-addressed store, hash-verified

89 start_ts, cmd_index, chain_len = 0, 0, 1
90
91 def is_end_of_command(qread_offset: int, end_idx: int) -> bool:
92 if end_idx >= queue_df_len:
93 return qread_offset > offsets[cmd_index]
94 return qread_offset == offsets[end_idx]
95
96 for event in (e for e in objects if e.get("tid") == "qread"):
97 if cmd_index >= queue_df_len:

Callers 1

transform_eventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected