MCPcopy
hub / github.com/tinygrad/tinygrad / empty

Method empty

extra/hevc/hevc.py:9–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7class BitReader:
8 def __init__(self, data:bytes): self.reader, self.current_bits, self.bits, self.read_bits, self.total = iter(data), 0, 0, 0, len(data) * 8
9 def empty(self): return self.read_bits == self.total and self.current_bits == 0
10 def peak_bits(self, n):
11 while self.current_bits < n:
12 self.bits = (self.bits << 8) | next(self.reader)

Callers 15

saveMethod · 0.45
eval_custom_matmulFunction · 0.45
test_matmulFunction · 0.45
test_matmulFunction · 0.45
hip_matmul.pyFile · 0.45
cuda_matmul.pyFile · 0.45
hevc_decodeFunction · 0.45

Calls

no outgoing calls

Tested by 8

test_matmulFunction · 0.36
test_matmulFunction · 0.36
test_topk_outMethod · 0.36
test_sort_outMethod · 0.36
test_cat_outMethod · 0.36
test_cat_out_empty_1dMethod · 0.36
test_cat_all_emptyMethod · 0.36