MCPcopy
hub / github.com/tinygrad/tinygrad / _data

Method _data

tinygrad/tensor.py:293–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 if self.uop.device is None or isinstance(self.device, tuple): x = x.clone("CPU")
292 return cast(Buffer, x.realize().uop.buffer).ensure_allocated()
293 def _data(self) -> memoryview: return self._buffer().as_memoryview()
294
295 def data(self) -> memoryview:
296 """

Callers 1

assignMethod · 0.95

Calls 2

_bufferMethod · 0.95
as_memoryviewMethod · 0.80

Tested by

no test coverage detected