MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / empty

Method empty

tensorrt_llm/llmapi/utils.py:389–390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

387 return len(self._q) == self._q.maxlen
388
389 def empty(self) -> bool:
390 return not self._q
391
392 def put(self, item) -> None:
393 self._q.append(item)

Callers 15

apply_allocationFunction · 0.45
forwardMethod · 0.45
topk_forwardFunction · 0.45
forwardMethod · 0.45
clear_sumsFunction · 0.45
sum_bitmatrix_rowsFunction · 0.45
alloc_fnFunction · 0.45
upcast_from_mxfpFunction · 0.45
unpadFunction · 0.45
forwardMethod · 0.45
backwardMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_bert_attentionMethod · 0.36
__init__Method · 0.36
test_mambaMethod · 0.36
test_beams2treeMethod · 0.36
load_test_casesMethod · 0.36
test_alibi_biasesMethod · 0.36
test_mamba_conv1dMethod · 0.36
test_rg_lruMethod · 0.36