MCPcopy
hub / github.com/tinygrad/tinygrad / BufferSpec

Class BufferSpec

tinygrad/device.py:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77@dataclass(frozen=True, eq=True)
78class BufferSpec:
79 # TODO: move device, size, dtype here?
80 uncached: bool = False
81 cpu_access: bool = False
82 host: bool = False
83 nolru: bool = False
84 external_ptr: int|None = None
85
86class MultiBuffer:
87 def __init__(self, device:tuple[str, ...], size:int, dtype:DType):

Callers 15

__del__Method · 0.90
bindMethod · 0.90
bindMethod · 0.90
bindMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
_copyinMethod · 0.90
__del__Method · 0.90
bindMethod · 0.90
__init__Method · 0.90
__del__Method · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…