示例#1
0
        private void LogExecutionCompleted(IExecutionHistory executionHistory)
        {
            var command = new AuditCommand
            {
                Type             = executionHistory.AuditType,
                ExecutionHistory = executionHistory as ExecutionHistory
            };

            Publish(Serializer.Serialize(command));
        }
 public void AddForward(IExecutionHistory action, Func <IBackpropagation> callback) => _forward.Add(action);
示例#3
0
 public void AddForward(IExecutionHistory action, Func <IBackpropagation> callback)
 {
     // TODO: wrap the backpropagation?
     _context.AddForward(new TrainingAction(_wrapper, action.Data, action.Source), callback);
 }
示例#4
0
 public void ExecutionSucceeded(IExecutionHistory executionHistory)
 {
     LogExecutionCompleted(executionHistory);
 }
示例#5
0
 public void ExecutionFailed(IExecutionHistory executionHistory)
 {
     LogExecutionCompleted(executionHistory);
 }