Backends/SiaNet.Backend.TensorSharp/Cuda/ContextState/PoolingDeviceAllocator.cs
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .
public void Dispose()
        {
            foreach (var kvp in pools)
            {
                foreach (var item in kvp.Value)
                {
                    item.Free();
                }
            }
            pools.Clear();
        }
public void Dispose ( ) { foreach ( var kvp in pools ) { foreach ( var item in kvp . Value ) { item . Free ( ) ; } } pools . Clear ( ) ; }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .