NewScope creates a Scope initialized with an empty Graph.
()
| 48 | |
| 49 | // NewScope creates a Scope initialized with an empty Graph. |
| 50 | func NewScope() *Scope { |
| 51 | return &Scope{graph: tf.NewGraph(), namemap: make(map[string]int), err: new(scopeErr)} |
| 52 | } |
| 53 | |
| 54 | // NewScopeWithGraph creates a Scope initialized with the Graph thats passed in |
| 55 | func NewScopeWithGraph(g *tf.Graph) *Scope { |