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

Function is_dequant_node

backends/vulkan/utils.py:126–130  ·  view source on GitHub ↗
(node: torch.fx.Node)

Source from the content-addressed store, hash-verified

124
125
126def is_dequant_node(node: torch.fx.Node) -> bool:
127 if node.op != "call_function":
128 return False
129 node_name = format_target_name(node.target.__name__) # pyre-ignore
130 return node_name in _DQ_OPS
131
132
133def is_quant_node(node: torch.fx.Node) -> bool:

Callers 2

find_dequant_userFunction · 0.70

Calls 1

format_target_nameFunction · 0.90

Tested by

no test coverage detected