MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / llama_memory_clear

Function llama_memory_clear

llama_cpp/llama_cpp.py:2278–2281  ·  view source on GitHub ↗

Clear the memory contents If data == true, the data buffers will also be cleared together with the metadata

(mem: llama_memory_t, data: bool, /)

Source from the content-addressed store, hash-verified

2276 None,
2277)
2278def llama_memory_clear(mem: llama_memory_t, data: bool, /):
2279 """Clear the memory contents
2280 If data == true, the data buffers will also be cleared together with the metadata"""
2281 ...
2282
2283
2284# // Removes all tokens that belong to the specified sequence and have positions in [p0, p1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…