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

Function meta_without_qparams

backends/arm/_passes/arm_pass_utils.py:243–248  ·  view source on GitHub ↗

Return a copy of NodeMetadata with input/output qparams cleared.

(meta: NodeMetadata)

Source from the content-addressed store, hash-verified

241
242
243def meta_without_qparams(meta: NodeMetadata) -> NodeMetadata:
244 """Return a copy of NodeMetadata with input/output qparams cleared."""
245 plain_meta_dict = dict(meta.data)
246 plain_meta_dict["input_qparams"] = {}
247 plain_meta_dict["output_qparams"] = {}
248 return NodeMetadata(plain_meta_dict)
249
250
251def insert_scalar(

Callers 1

call_operatorMethod · 0.90

Calls 1

NodeMetadataClass · 0.90

Tested by

no test coverage detected