MCPcopy 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
929def has_shape(node: Node) -> bool:
930 return hasattr(node, "meta") and "val" in node.meta and hasattr(node.meta["val"], "shape")
931
932
933def shape(node: Node) -> Tuple[int, ...]:

Callers 1

shapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected