sophgo / tpu-mlir

Machine learning compiler based on MLIR for Sophgo TPU.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what ForwardTypePattern<tpu::ReshapeOp pattern did in ConvertTopToTpu pass?

Alicture opened this issue · comments

what this pattern did ? ForwardTypePatterntpu::ReshapeOp

I have dumped module before this pattern apply ,and did a compare to the module after this pattern apply.Noting changed.After read this pattern, it's seems did an infershape operation to reshape op?
Why apply this pattern after lowering other ops? shape-infer pass already did infershape before ConvertTopToTpu.