Пример #1
0
        protected OutputConnector <T> AddOutputConnector <T>(string name, ReadOnlySpan <int> dimensions, Func <IReadOnlyDictionary <string, object>, Tensor <T> > evaluator)
        {
            var output = new OutputConnector <T>(this, name, dimensions, evaluator);

            _outputConnectors.Add(name, output);
            return(output);
        }
Пример #2
0
 public Connection(OutputConnector from, InputConnector to)
 {
     From = from;
     To   = to;
 }
Пример #3
0
 public static FlowGraph From(OutputConnector output) => new FlowGraph(output);
Пример #4
0
 internal FlowGraph(OutputConnector output)
 {
     _output    = output;
     _evaluator = new Evaluator(output);
     Layers     = FindLayers();
 }
Пример #5
0
 public Evaluator(OutputConnector output)
 {
     _output        = output;
     InputVariables = FindInputVariables();
 }