MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Neg

Function Neg

tensorflow/go/util_test.go:49–56  ·  view source on GitHub ↗
(g *Graph, name string, port Output)

Source from the content-addressed store, hash-verified

47}
48
49func 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
58func Add(g *Graph, name string, x, y Output) (Output, error) {
59 op, err := g.AddOperation(OpSpec{

Callers 3

createTestGraphFunction · 0.70
TestOperationConsumersFunction · 0.70

Calls 2

AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected