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); }
public Connection(OutputConnector from, InputConnector to) { From = from; To = to; }
public static FlowGraph From(OutputConnector output) => new FlowGraph(output);
internal FlowGraph(OutputConnector output) { _output = output; _evaluator = new Evaluator(output); Layers = FindLayers(); }
public Evaluator(OutputConnector output) { _output = output; InputVariables = FindInputVariables(); }