Method Warmup
Warmup()
Eagerly ensures the underlying inference context is initialized and resident in memory.
void Warmup()
Remarks
Contexts are created lazily on first use. Calling Warmup() forces that allocation up front, which is useful when:
- You want to pay the one-time creation cost at a predictable moment (e.g. on application startup) rather than at the first user-facing interaction.
- The context is currently Hibernated and you want to rehydrate it from disk before the next inference call.
The call blocks while any pending hibernation completes. After it returns, Residency is InMemory at the moment of return; subsequent hibernation requests from other threads are not prevented.