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

Method Finalize

tensorflow/go/op/scope.go:62–68  ·  view source on GitHub ↗

Finalize returns the Graph on which this scope operates on and renders s unusable. If there was an error during graph construction, that error is returned instead.

()

Source from the content-addressed store, hash-verified

60// unusable. If there was an error during graph construction, that error is
61// returned instead.
62func (s *Scope) Finalize() (*tf.Graph, error) {
63 if err := s.Err(); err != nil {
64 return nil, err
65 }
66 s.err.err = fmt.Errorf("Scope has been finalized and is no longer usable")
67 return s.graph, nil
68}
69
70// AddOperation adds the operation to the Graph managed by s.
71//

Callers 13

TestPlaceholderFunction · 0.95
TestShapeAttributeFunction · 0.95
TestMultipleGeneratedOpsFunction · 0.95
TestScopeWithGraphFunction · 0.95
mainFunction · 0.45
TESTFunction · 0.45
TestDatasetFunction · 0.45
TestAddGradientsFunction · 0.45
TestAddGradientsSumsFunction · 0.45
TestControlDependenciesFunction · 0.45

Calls 1

ErrMethod · 0.95

Tested by 13

TestPlaceholderFunction · 0.76
TestShapeAttributeFunction · 0.76
TestMultipleGeneratedOpsFunction · 0.76
TestScopeWithGraphFunction · 0.76
mainFunction · 0.36
TESTFunction · 0.36
TestDatasetFunction · 0.36
TestAddGradientsFunction · 0.36
TestAddGradientsSumsFunction · 0.36
TestControlDependenciesFunction · 0.36