Backends/SiaNet.Backend.TensorSharp/Cuda/ContextState/CudaKernelCache.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 activeKernels)
            {
                var ctx = kvp.Key.Item1;
                var kernel = kvp.Value;
                ctx.UnloadKernel(kernel);
            }
        }
public void Dispose ( ) { foreach ( var kvp in activeKernels ) { var ctx = kvp . Key . Item1 ; var kernel = kvp . Value ; ctx . UnloadKernel ( kernel ) ; } }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .