Skip to main content

pattern_op_names

Function pattern_op_names 

Source
pub fn pattern_op_names(pattern: &KernelPattern) -> Vec<String>
Expand description

The operator names a pattern will emit, for asking a support matrix about.

One list rather than one name: an ElementWiseChain becomes a Cast and a node per step, and asking about “Mul+Add” reported it unsupported on hardware that has both.

This lived in eight backends, character for character, and the arms that no backend’s tests reached were uncovered eight times over. It belongs next to the enum it matches on.