| 202 | current_variable_scope=current_variable_scope) |
| 203 | |
| 204 | def _init_set_name(self, name): |
| 205 | # Anonymous Networks (name=None) defer setting a final name until they are |
| 206 | # (1) added to another Network, or (2) built/called (where (2) is only used |
| 207 | # for a "top level" network). |
| 208 | # |
| 209 | # However, if we were provided an explicit name (name is not None), that |
| 210 | # will always be the final name of the Network; if it turns out not to be |
| 211 | # unique or if variable names can't be prefixed by it we will throw an |
| 212 | # error. |
| 213 | self._name = name |
| 214 | self._base_name = None |
| 215 | |
| 216 | def _finalize_name(self, parent_network): |
| 217 | if not self._name: |