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

Method Operation

tensorflow/go/graph.go:153–161  ·  view source on GitHub ↗

Operation returns the Operation named name in the Graph, or nil if no such operation is present.

(name string)

Source from the content-addressed store, hash-verified

151// Operation returns the Operation named name in the Graph, or nil if no such
152// operation is present.
153func (g *Graph) Operation(name string) *Operation {
154 cname := C.CString(name)
155 defer C.free(unsafe.Pointer(cname))
156 cop := C.TF_GraphOperationByName(g.c, cname)
157 if cop == nil {
158 return nil
159 }
160 return &Operation{cop, g}
161}
162
163// Operations returns a list of all operations in the graph
164func (g *Graph) Operations() []Operation {

Callers 15

ExampleFunction · 0.95
testShapeMethod · 0.45
testIterableMethod · 0.45
testIterableGraphMethod · 0.45
testImplicitBoolMethod · 0.45
testDeviceFromNodeDefMethod · 0.45
testDeviceObjectMethod · 0.45
testReferenceInputMethod · 0.45
testInvalidNamesMethod · 0.45
testStrMethod · 0.45
testReprMethod · 0.45
testSuccessMethod · 0.45

Calls 1

freeMethod · 0.80

Tested by 15

ExampleFunction · 0.76
testShapeMethod · 0.36
testIterableMethod · 0.36
testIterableGraphMethod · 0.36
testImplicitBoolMethod · 0.36
testDeviceFromNodeDefMethod · 0.36
testDeviceObjectMethod · 0.36
testReferenceInputMethod · 0.36
testInvalidNamesMethod · 0.36
testStrMethod · 0.36
testReprMethod · 0.36
testSuccessMethod · 0.36