AiDotNetEngine

Helpers & Utilities · AiDotNet.Tensors.Engines

No summary documentation available yet.

Properties

Property Summary
Action<string> Logger { get; set; }
IEngine Current { get; set; }
bool DeterministicMode { get; }
bool GpuCircuitBroken { get; }
bool IsCallerAssigned { get; }

Methods

Method Summary
GpuExecutionContext BeginGpuContext(GpuExecutionOptions options)
TResult WithGpuContext(Func<GpuExecutionContext, TResult> func, Func<TResult> fallback, GpuExecutionOptions options)
bool AutoDetectAndConfigureGpu()
bool AutoDetectAndConfigureGpu(bool verbose)
bool ReleaseGpu()
bool ReleaseGpu(TimeSpan drainTimeout)
bool WithGpuContext(Action<GpuExecutionContext> action, GpuExecutionOptions options)
string GetEngineInfo()
void ResetToCpu()
void SetDeterministicMode(bool deterministic)
void TripGpuCircuitBreaker(string operation, int cudaErrorCode)