Rate this Page

torch.compiler.load_cache_artifacts#

torch.compiler.load_cache_artifacts(serialized_artifacts)[source]#

Hot loads cache artifacts that were previously serialized via save_cache_artifacts

Example:

# From a previous invocation artifacts = torch.compiler.save_cache_artifacts()

torch.compiler.load_cache_artifacts(artifacts[0])

Return type:

CacheInfo | None