Table of Contents

Class ActivationPoolStats

Namespace
AiDotNet.Diffusion.Memory
Assembly
AiDotNet.dll

Statistics about activation pool usage. Thread-safe counters for concurrent access.

public class ActivationPoolStats
Inheritance
ActivationPoolStats
Inherited Members

Properties

CacheHits

Number of times a tensor was found in the pool.

public long CacheHits { get; set; }

Property Value

long

CacheMisses

Number of times a new tensor had to be allocated.

public long CacheMisses { get; set; }

Property Value

long

Evictions

Number of tensors evicted due to memory pressure.

public long Evictions { get; set; }

Property Value

long

HitRatio

Cache hit ratio (0-1).

public double HitRatio { get; }

Property Value

double

PooledTensors

Current number of tensors in the pool.

public long PooledTensors { get; }

Property Value

long

Returns

Number of tensors returned to the pool.

public long Returns { get; set; }

Property Value

long

Methods

IncrementCacheHits()

Thread-safe increment of cache hits counter.

public void IncrementCacheHits()

IncrementCacheMisses()

Thread-safe increment of cache misses counter.

public void IncrementCacheMisses()

IncrementEvictions()

Thread-safe increment of evictions counter.

public void IncrementEvictions()

IncrementReturns()

Thread-safe increment of returns counter.

public void IncrementReturns()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.