Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tinygrad/tinygrad
/ nbytes
Method
nbytes
test/mockgpu/mockgpu.py:37–37 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
35
36
@property
37
def
nbytes(self):
return
self.mv.nbytes
38
def
__len__(self):
return
len(self.mv)
39
def
__repr__(self):
return
repr(self.mv)
40
Callers
15
test_ptr_nbytes
Method · 0.45
test_ptr_nbytes_unlimited
Method · 0.45
test_simple_add
Method · 0.45
test_simple_add_sq
Method · 0.45
test_simple_matmul
Method · 0.45
test_zero_copy_from_default_to_cpu
Method · 0.45
testCopySHMtoDefault
Method · 0.45
testCopyCPUtoDefault
Method · 0.45
testCopyCPUtoDefaultFresh
Method · 0.45
testCopyDefaulttoCPU
Method · 0.45
testCopyDefaulttoCPUJit
Method · 0.45
testCopyCPUtoDefaultJit
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_ptr_nbytes
Method · 0.36
test_ptr_nbytes_unlimited
Method · 0.36
test_simple_add
Method · 0.36
test_simple_add_sq
Method · 0.36
test_simple_matmul
Method · 0.36
test_zero_copy_from_default_to_cpu
Method · 0.36
testCopySHMtoDefault
Method · 0.36
testCopyCPUtoDefault
Method · 0.36
testCopyCPUtoDefaultFresh
Method · 0.36
testCopyDefaulttoCPU
Method · 0.36
testCopyDefaulttoCPUJit
Method · 0.36
testCopyCPUtoDefaultJit
Method · 0.36