Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/NVIDIA/TensorRT-LLM
/ has_shape
Function
has_shape
tensorrt_llm/_torch/auto_deploy/utils/node_utils.py:929–930 ·
view source on GitHub ↗
(node: Node)
Source
from the content-addressed store, hash-verified
927
928
929
def
has_shape(node: Node) -> bool:
930
return
hasattr(node,
"meta"
) and
"val"
in node.meta and hasattr(node.meta[
"val"
],
"shape"
)
931
932
933
def
shape(node: Node) -> Tuple[int, ...]:
Callers
1
shape
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected