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

Method f

backends/arm/_passes/insert_table_ops.py:168–171  ·  view source on GitHub ↗
(x: torch.Tensor)

Source from the content-addressed store, hash-verified

166 """
167
168 def f(x: torch.Tensor) -> torch.Tensor:
169 x = in_quantargs.dequantize_value(x)
170 x = torch_op(x)
171 return out_quantargs.quantize_value(x)
172
173 effective_codes = self._get_8bit_table_domain().clamp(
174 in_quantargs.qmin, in_quantargs.qmax

Callers

nothing calls this directly

Calls 3

dequantize_valueMethod · 0.80
quantize_valueMethod · 0.80
toMethod · 0.45

Tested by

no test coverage detected