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

Method __getitem__

tensorrt_llm/python_plugin.py:204–208  ·  view source on GitHub ↗
(self, index: int)

Source from the content-addressed store, hash-verified

202 self._dims = None
203
204 def __getitem__(self, index: int):
205 if self._dims is not None:
206 return self._dims[index]
207 else:
208 return DimensionExpr(None, self.exprBuilder)
209
210 def __setitem__(
211 self,

Callers

nothing calls this directly

Calls 1

DimensionExprClass · 0.85

Tested by

no test coverage detected