(self, device=None)
| 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): |
| 834 | return super(TPUVariableMixin, self).get(device=device) |
| 835 | else: |
| 836 | raise NotImplementedError( |
| 837 | "`TPUVariableMixin.get()` is not supported within a TPU context.") |
| 838 | |
| 839 | def _get_as_operand(self): |
| 840 | return self.read_value() |
no test coverage detected