(g *Graph, name string, port Output)
| 47 | } |
| 48 | |
| 49 | func Neg(g *Graph, name string, port Output) (Output, error) { |
| 50 | op, err := g.AddOperation(OpSpec{ |
| 51 | Type: "Neg", |
| 52 | Name: name, |
| 53 | Input: []Input{port}, |
| 54 | }) |
| 55 | return op.Output(0), err |
| 56 | } |
| 57 | |
| 58 | func Add(g *Graph, name string, x, y Output) (Output, error) { |
| 59 | op, err := g.AddOperation(OpSpec{ |
no test coverage detected