(self)
| 127 | return self |
| 128 | # check if the underlying buffer is allocated and the current buffer/view is initialized |
| 129 | def is_initialized(self) -> bool: return self.is_allocated() and self.device in self._bufs |
| 130 | # check if the underlying buffer is allocated, possibly from the base object |
| 131 | def is_allocated(self) -> bool: return self.base.is_allocated() if self._base is not None else self.device in self._bufs |
| 132 | def get_buf(self, device: str) -> Any: |