示例#1
0
        public async Task InvokeAllDone(object sender, int totalEpochs, float finalError)
        {
            if (task != null)
            {
                await task;
                task.Dispose();
            }

            task = Task.Run(() =>
                            AllDone?.Invoke(sender, new AllDoneArgs
            {
                TotalEpochs = totalEpochs,
                FinalError  = finalError
            })
                            );
        }
示例#2
0
 private void FireAllDone() => AllDone?.Invoke();