[Apache TVM Discuss] [Development] Remove extra reshape

2020-10-30 Thread Haichen Shen via Apache TVM Discuss
Sure, I think you can add this into the `SimplifyExpr` pass. I thought about this before, but I think that the reshape op might be inlined in the fused op. --- [Visit Topic](https://discuss.tvm.apache.org/t/remove-extra-reshape/8212/2) to respond. You are receiving this because you enable

[Apache TVM Discuss] [Development] Remove extra reshape

2020-10-20 Thread zhupijuan_lkl via Apache TVM Discuss
In current relay pass, we can merge two consecutive reshape op by `SimplifyExpr` pass. Sometimes, We may produce useless reshape op in the process of importing models. For example: #[version = "0.0.5"] def @main(%Placeholder: Tensor[(1, 3, 227, 227), float32], %conv1/weights: Tensor[(