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

Function combo_pattern

backends/arm/quantizer/quantizer_support.py:18–20  ·  view source on GitHub ↗

Returns the cartesian product of the given pattern lists.

(*pattern_lists)

Source from the content-addressed store, hash-verified

16
17
18def combo_pattern(*pattern_lists):
19 "Returns the cartesian product of the given pattern lists."
20 return [tuple(pattern) for pattern in product(*pattern_lists)]
21
22
23class ReluFusedPatternCheck(PatternCheck):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected