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

Method ndim

tensorrt_llm/functional.py:498–502  ·  view source on GitHub ↗

Returns the rank (i.e. the number of dimensions) of the tensor.

(self)

Source from the content-addressed store, hash-verified

496 return len(self.trt_tensor.shape)
497
498 def ndim(self):
499 '''
500 Returns the rank (i.e. the number of dimensions) of the tensor.
501 '''
502 return self.rank()
503
504 def split(self, split_size_or_sections, dim=0):
505 '''

Callers 15

flipFunction · 0.45
interpolateFunction · 0.45
sliceFunction · 0.45
padFunction · 0.45
categorical_sampleFunction · 0.45
__init__Method · 0.45
permuteFunction · 0.45
transposeFunction · 0.45
flattenFunction · 0.45
expand_dimsFunction · 0.45
squeezeFunction · 0.45
unsqueezeFunction · 0.45

Calls 1

rankMethod · 0.95

Tested by

no test coverage detected