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

Function get_decomp_table

backends/qualcomm/utils/utils.py:308–323  ·  view source on GitHub ↗
(passes_job)

Source from the content-addressed store, hash-verified

306
307
308def get_decomp_table(passes_job) -> Dict[torch._ops.OperatorBase, Callable]:
309 source_decompositions = core_aten_decompositions()
310 # The below super ops are supported by QNN
311 skip_decompositions = get_skip_decomp_table()
312
313 # If we want to annotate the decomposed ops, then we should decompose the operation.
314 if passes_job:
315 skip_decompositions = [
316 skip_decomp_op
317 for skip_decomp_op in skip_decompositions
318 if skip_decomp_op
319 not in AnnotateStack.decomp_ops + AnnotateUnbind.decomp_ops
320 ]
321 remove_decompositions(source_decompositions, skip_decompositions)
322
323 return source_decompositions
324
325
326def to_edge_transform_and_lower_to_qnn(

Callers 1

capture_programFunction · 0.85

Calls 1

get_skip_decomp_tableFunction · 0.85

Tested by

no test coverage detected