[MLIR][Linalg] Can all linalg generic ops be converted to named ops?

As the title says, I want to ask if all linalg generic ops can be converted to named ops? Since the named ops are actually syntactic sugar over some instance of linalg.generic ops.

No :slight_smile:

Converting requires 1-1 mappings between named ops and linalg.generics. However, the number of named Ops is limited whereas the number of possible linalg.generic’s is infinite. So it’s impossible to have such mapping for all generics.

Hope this helps.

1 Like

I see. Thank you very much.