[TVM Discuss] [Questions] How to leverage tvm.tir.transform in TVM 0.7

2020-09-03 Thread Jared Roesch via TVM Discuss
If you want to just simplify a single expression/stmt you can use the internal API to do so. Here is how simplify pass is defined: ``` Pass Simplify() { auto pass_func = [](PrimFunc f, IRModule m, PassContext ctx) { auto* n = f.CopyOnWrite(); arith::Analyzer analyzer; n->body = a

[TVM Discuss] [Questions] How to leverage tvm.tir.transform in TVM 0.7

2020-09-03 Thread Jared Roesch via TVM Discuss
We have moved to having all passes use the pass infrastructure now, you should be able to just invoke Simplify on your entire IRModule before running your pass. i.e `Simplify()(mod)`. --- [Visit Topic](https://discuss.tvm.ai/t/how-to-leverage-tvm-tir-transform-in-tvm-0-7/7780/2) to respo

[TVM Discuss] [Questions] Relay Level Tiling of Conv2d or any operator

2020-05-12 Thread Jared Roesch via TVM Discuss
You can write a small pass in Python to partition the program in the way that you would like. For example this below pass splits the inputs, and then adds, and concatenates them. You can employ a similar technique to do the partitioning that you want. https://gist.github.com/jroesch/a110f8ea

[TVM Discuss] [Questions] [VM] The performance degradation of VM runtime and Dynamic Shape support compared to Graph Runtime

2020-03-24 Thread Jared Roesch via TVM Discuss
Hi there, on top of answering Haichen's questions can you share your example programs that you used to generate this data? we actively improving and working on VM to close the parity gap with the graph runtime. --- [Visit Topic](https://discuss.tvm.ai/t/vm-the-performance-degradation-of-v