warp.capture_load#

warp.capture_load(path, device=None)[source]#

Load a serialized graph from a .wrp file.

Parameters:
  • path (str) – Path to the .wrp file (extension added automatically if missing).

  • device (Device | str | None) – The device to load the graph onto (CPU or CUDA).

Returns:

A Graph object that can be launched with capture_launch().

Return type:

Graph