(g *Graph, name string, x, y Output)
| 56 | } |
| 57 | |
| 58 | func Add(g *Graph, name string, x, y Output) (Output, error) { |
| 59 | op, err := g.AddOperation(OpSpec{ |
| 60 | Type: "Add", |
| 61 | Name: name, |
| 62 | Input: []Input{x, y}, |
| 63 | }) |
| 64 | return op.Output(0), err |
| 65 | } |
no test coverage detected