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

Function is_tensor_arg_node

backends/vulkan/utils.py:267–275  ·  view source on GitHub ↗
(node: Any)

Source from the content-addressed store, hash-verified

265
266
267def is_tensor_arg_node(node: Any) -> bool:
268 if isinstance(node, torch.fx.Node):
269 return is_tensor_node(node)
270 elif isinstance(node, (list, tuple)):
271 if len(node) == 0:
272 return False
273 return all(is_tensor_node(n) for n in node)
274
275 return False
276
277
278def num_tensor_arg_nodes(node: torch.fx.Node) -> int:

Callers 1

__init__Method · 0.85

Calls 1

is_tensor_nodeFunction · 0.85

Tested by

no test coverage detected