warp.capture_save#
- warp.capture_save(graph, path, inputs=None, outputs=None)[source]#
Serialize a captured graph to a
.wrpfile for later replay.The graph must have been captured with
apic=True. For graphs containing recorded kernels, the.wrpfile and its companion_modulesdirectory must be kept together.- Parameters:
If the same array appears in both
inputsandoutputs(e.g., for in-place operations), both names will refer to the same memory region. Updating either viaset_paramon the loaded graph affects the same data. Each name binds the array’s entire base allocation rather than a view offset. Arrays passed toset_paramandget_parammust have the same byte capacity as that serialized region.