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

Function is_dequant

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

Source from the content-addressed store, hash-verified

101
102
103def is_dequant(node: torch.fx.Node) -> bool:
104 if node.op != "call_function":
105 return False
106 node_name = format_target_name(node.target.__name__) # pyre-ignore
107
108 return node_name in _DQ_OPS
109
110
111def is_per_channel(node: torch.fx.Node) -> bool:

Callers 15

from_q_dq_nodeMethod · 0.90
from_weightsMethod · 0.90
from_inputsMethod · 0.90
callMethod · 0.90
is_nhwc_nodeMethod · 0.90
is_nchw_nodeMethod · 0.90
insert_copy_q_dqMethod · 0.90
callMethod · 0.90
callMethod · 0.90
callMethod · 0.90
get_node_and_depsMethod · 0.90

Calls 1

format_target_nameFunction · 0.90

Tested by 1