NewScopeWithGraph creates a Scope initialized with the Graph thats passed in
(g *tf.Graph)
| 53 | |
| 54 | // NewScopeWithGraph creates a Scope initialized with the Graph thats passed in |
| 55 | func NewScopeWithGraph(g *tf.Graph) *Scope { |
| 56 | return &Scope{graph: g, namemap: make(map[string]int), err: new(scopeErr)} |
| 57 | } |
| 58 | |
| 59 | // Finalize returns the Graph on which this scope operates on and renders s |
| 60 | // unusable. If there was an error during graph construction, that error is |