Method Dispose
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
Dispose()
Releases this generator's session lease. Does NOT dispose the shared session - the session host owns it - so wrapping this in a delegating generator, which disposes its inner by default, is safe.
public void Dispose()
Remarks
Leases are taken per call and returned before GenerateAsync returns, so there is no
long-lived lease left to release here; what this disposes is the concurrency gate and the
query sibling this instance created.