ActivationPoolStats
Models & Types · AiDotNet.Diffusion.Memory
Statistics about activation pool usage.
Thread-safe counters for concurrent access.
Constructors
| Constructor |
Summary |
ActivationPoolStats() |
|
Properties
| Property |
Summary |
double HitRatio { get; } |
Cache hit ratio (0-1). |
long CacheHits { get; set; } |
Number of times a tensor was found in the pool. |
long CacheMisses { get; set; } |
Number of times a new tensor had to be allocated. |
long Evictions { get; set; } |
Number of tensors evicted due to memory pressure. |
long PooledTensors { get; } |
Current number of tensors in the pool. |
long Returns { get; set; } |
Number of tensors returned to the pool. |
Methods
| Method |
Summary |
string ToString() |
|
void IncrementCacheHits() |
Thread-safe increment of cache hits counter. |
void IncrementCacheMisses() |
Thread-safe increment of cache misses counter. |
void IncrementEvictions() |
Thread-safe increment of evictions counter. |
void IncrementReturns() |
Thread-safe increment of returns counter. |