PoolStatistics
Models & Types · AiDotNet.Memory
Provides statistics about the current state of a tensor pool. Use this class to monitor pool usage and tune pooling parameters.
How It Works
Pool statistics help you understand:
- How much memory is currently being used by pooled tensors
- How many tensors are available for reuse
- Whether the pool is operating efficiently
Example usage:
Constructors
| Constructor | Summary |
|---|---|
PoolStatistics() |
Properties
| Property | Summary |
|---|---|
double MemoryUtilizationPercent { get; } |
Gets the percentage of maximum pool memory currently in use. |
int PooledTensorCount { get; set; } |
Gets or sets the number of tensors currently held in the pool. |
int TensorBuckets { get; set; } |
Gets or sets the number of shape buckets in the pool. |
long CurrentMemoryBytes { get; set; } |
Gets or sets the total memory currently used by pooled tensors, in bytes. |
long MaxMemoryBytes { get; set; } |
Gets or sets the maximum memory allowed for pooling, in bytes. |