(self, scope=None)
| 303 | return self._current_scope.original_name_scope |
| 304 | |
| 305 | def _set_scope(self, scope=None): |
| 306 | if self._scope is None: |
| 307 | # If constructed with _scope=None, lazy setting of scope. |
| 308 | if self._reuse: |
| 309 | with vs.variable_scope( |
| 310 | scope if scope is not None else self._base_name) as captured_scope: |
| 311 | self._scope = captured_scope |
| 312 | else: |
| 313 | with vs.variable_scope( |
| 314 | scope, default_name=self._base_name) as captured_scope: |
| 315 | self._scope = captured_scope |
| 316 | |
| 317 | def add_weight(self, |
| 318 | name, |
no test coverage detected