(self, name)
| 823 | self._handle_id = self._common_name |
| 824 | |
| 825 | def __getattr__(self, name): |
| 826 | if _enclosing_tpu_context() is None: |
| 827 | return super(TPUVariableMixin, self).__getattr__(name) |
| 828 | else: |
| 829 | raise AttributeError( |
| 830 | "'{}' not accessible within a TPU context.".format(name)) |
| 831 | |
| 832 | def get(self, device=None): |
| 833 | if (_enclosing_tpu_context() is None) or (device is not None): |
no test coverage detected