(self)
| 854 | |
| 855 | @property |
| 856 | def handle(self): |
| 857 | # If we're in a tpu.rewrite(), return the replicated handle. |
| 858 | tpu_context = _enclosing_tpu_context() |
| 859 | if tpu_context is None: |
| 860 | return self._get_closest().handle |
| 861 | else: |
| 862 | return tpu_context.get_replicated_var_handle( |
| 863 | self._handle_id, self._values) |
| 864 | |
| 865 | @property |
| 866 | def device(self): |
nothing calls this directly
no test coverage detected