MCPcopy Create free account
hub / github.com/pytorch/executorch / is_symint_node

Function is_symint_node

backends/vulkan/utils.py:206–216  ·  view source on GitHub ↗

Returns true if the given node produces a SymInt value

(node: torch.fx.Node)

Source from the content-addressed store, hash-verified

204
205
206def is_symint_node(node: torch.fx.Node) -> bool:
207 """
208 Returns true if the given node produces a SymInt value
209 """
210 if "val" not in node.meta:
211 return False
212
213 if isinstance(node.meta["val"], torch.SymInt):
214 return True
215
216 return False
217
218
219def is_single_tensor_node(node: torch.fx.Node) -> bool:

Callers 2

create_node_valueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected