/// <summary> /// Adds a node to the node list of the graph. /// </summary> /// <param name="node"></param> private void AddNode(OnnxCSharpToProtoWrapper.NodeProto node) { _host.CheckValue(node, nameof(node)); _host.Assert(!_nodeNames.Contains(node.Name)); _nodeNames.Add(node.Name); _nodes.Add(node); }
public ScikitOnnxNode(OnnxCSharpToProtoWrapper.NodeProto node) { Contracts.AssertValue(node); _node = node; }