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

Function is_qparam

backends/xnnpack/utils/quant_utils.py:87–92  ·  view source on GitHub ↗
(node: torch.fx.Node)

Source from the content-addressed store, hash-verified

85
86
87def is_qparam(node: torch.fx.Node) -> bool:
88 if node.op != "call_function":
89 return False
90 node_name = format_target_name(node.target.__name__) # pyre-ignore
91
92 return node_name in _QPARAM_OPS
93
94
95def is_quant(node: torch.fx.Node) -> bool:

Callers 3

_get_act_depsMethod · 0.90
is_dynamic_qdqFunction · 0.85

Calls 1

format_target_nameFunction · 0.90

Tested by

no test coverage detected