Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/NVIDIA/TensorRT-LLM
/ shape
Method
shape
tensorrt_llm/functional.py:270–274 ·
view source on GitHub ↗
The shape of the tensor.
(self)
Source
from the content-addressed store, hash-verified
268
269
@property
270
def
shape(self):
271
''
&
#x27;
272
The shape of the tensor.
273
''
&
#x27;
274
return
self.size()
275
276
@shape.setter
277
def
shape(self, shape):
Callers
5
test_slice_implicit
Method · 0.45
test_alibi_biases
Method · 0.45
test_expand_implicit
Method · 0.45
test_gather
Method · 0.45
run_inference
Function · 0.45
Calls
1
size
Method · 0.95
Tested by
4
test_slice_implicit
Method · 0.36
test_alibi_biases
Method · 0.36
test_expand_implicit
Method · 0.36
test_gather
Method · 0.36