(self, *args, **kwargs)
| 378 | raise |
| 379 | |
| 380 | def __call__(self, *args, **kwargs): |
| 381 | if self._variable_scope: |
| 382 | # Only reuse variables if not on first call. |
| 383 | with variable_scope.variable_scope( |
| 384 | self._variable_scope, reuse=not self._first_call): |
| 385 | return self._call_func(args, kwargs) |
| 386 | else: |
| 387 | # The scope was not created at construction time, so create it here. |
| 388 | # Subsequent calls should reuse variables. |
| 389 | with variable_scope.variable_scope( |
| 390 | self._unique_name, self._name, |
| 391 | custom_getter=self._custom_getter) as vs: |
| 392 | self._variable_scope = vs |
| 393 | return self._call_func(args, kwargs) |
| 394 | |
| 395 | @property |
| 396 | def name(self): |
nothing calls this directly
no test coverage detected