InferenceScopeHandle<T>

Structs ยท AiDotNet.Memory

A disposable handle that restores the previous inference context when disposed. Returned by Begin to enable proper scope nesting.

Inheritance: ValueType โ†’ InferenceScopeHandle<T>

Implements: IDisposable

How It Works

This struct should be used with a using statement to ensure the previous context is properly restored even if an exception occurs.

Methods

Method Summary
void Dispose() Restores the previous inference context.