warp.capture_load#
- warp.capture_load(path, device=None)[source]#
Load a serialized graph from a
.wrpfile.For graphs containing recorded kernels, the companion
<stem>_modules/directory created bycapture_save()must remain next to the file.devicemust have the same device family (CPU or CUDA) as the saved graph. CUDA loading prefers a compatible packaged or cached module, then compiles retained generated source for the selected device. To load a graph whose files are already in memory, usecapture_load_from_bytes().