Transforming tf.Placeholder operations into function inputs?

Hello,

Is there a standard way (i.e. using existing tools) to transform tf.Placeholder operations of an MLIR specification into function inputs?

Best,
Dumitru

You have to specify this on import, you can’t do it after the fact right now. However that seems like an easy transformation to implement I think.

What Mehdi is referring to is there is an import option to import as function which does this, but it is part of translation and not a pass. I consider it pending why not just having it always be done one way during import and having pass instead (my preference is always have it be like function and never have placeholder, but that is a more invasive import but I don’t think it is a disruptive one).

– Jacques