MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / numel

Method numel

tensorrt_llm/runtime/session.py:53–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 # add more info like strides, formats if needed
52
53 def numel(self):
54 return prod(self.shape)
55
56 def view(self, *shape):
57 assert set(map(type, shape)) == {int}

Callers 15

viewMethod · 0.95
run_packMethod · 0.45
reswizzle_sfFunction · 0.45
_Function · 0.45
_view_asMethod · 0.45
get_bufferMethod · 0.45
_can_use_fused_kernelMethod · 0.45
advise_tensor_pageoutFunction · 0.45
run_moeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected