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

Method _get_tensor

backends/xnnpack/operators/quant_params.py:265–268  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

263 ), "ExportedProgram must be provided to extract per channel params"
264
265 def _get_tensor(node):
266 param = get_param_tensor(ep, node)
267 assert param is not None, f"Expected to find param tensor for {node}"
268 return cast(torch.Tensor, param)
269
270 scale = _get_tensor(scale)
271 zp = _get_tensor(zp)

Callers

nothing calls this directly

Calls 1

get_param_tensorFunction · 0.90

Tested by

no test coverage detected