System.Collections.Generic.List.Add((BrightWire.ExecutionGraph.Engine.Helper.ExecutionEngineContext Context, BrightWire.IMatrix Data))

Here are the examples of the csharp api class System.Collections.Generic.List.Add((BrightWire.ExecutionGraph.Engine.Helper.ExecutionEngineContext Context, BrightWire.IMatrix Data)) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: brightwire
Source File: ExecutionEngine.cs
View license
protected override void _Execute(IExecutionContext executionContext, IMiniBatch batch)
        {
            var ret = new List<ExecutionEngineContext>();
            var table = new Dictionary<IMiniBatchSequence, IContext>();

            if (batch.IsSequential) {
                IMiniBatchSequence curr = null;
                while ((curr = batch.GetNextSequence()) != null) {
                    var context = new ExecutionEngineContext(executionContext, curr);
                    _start.ExecuteForward(context, 0);
                    while (context.HasNext)
                        context.ExecuteNext();
                    ret.Add(context);
                    table.Add(curr, context);
                }
            } else {
                var context = new ExecutionEngineContext(executionContext, batch.CurrentSequence);
                _start.ExecuteForward(context, 0);

                while (context.HasNext)
                    context.ExecuteNext();

                ret.Add(context);
                table.Add(batch.CurrentSequence, context);
            }

            _Continue(batch, executionContext, sequence => table[sequence]);

            foreach (var item in ret) {
                _executionResults.Add((item, item.Data.GetMatrix()));
                item.Dispose();
            }
        }