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

Method free_batch

llama_cpp/_internals.py:485–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483 self.sampler = None # LlamaBatch doesn't use samplers, but some cleanup code expects this attribute
484
485 def free_batch():
486 if self.batch is None:
487 return
488 llama_cpp.llama_batch_free(self.batch)
489 self.batch = None
490
491 self._exit_stack.callback(free_batch)
492

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected