You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Tim Vault via TVM Discuss <no...@discuss.tvm.ai> on 2020/07/01 14:53:28 UTC

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model


Hello, i'm not sure what am I missing here but I am trying to compare the inference performance between tvm and simple mxnet resnet-18. I have Autotuned the model and it has some performance increase but it is still slower than the simple Mxnet model. I am getting 76 ms for the tvm auto-tuned model and 9 ms for the simple mxnet model. Can some one please help me? 

This is the code for loading auto-tuned model
![tvmmxnet|606x500](upload://czEbgyHVscIqEx0XV8up3Twa41p.png) 

This is the mxnet code:
![mxnet|557x500](upload://m2GlIHB6OBO4JR7jnvVbSujp9fG.png) 


I have attached the graph debug output:
 
![tvm_debug_output|690x402](upload://kdYdRsSShyhkH7aPqMwJneZNjp.png)`Preformatted text`





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/17907a3db6d5c50fb4fa72d4e3b2db8506b98edc93c1373e60ed401f27223c98).

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model

Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.

Multi-core should significantly improve performance. Can you use htop to watch the cpu usage?





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/6) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/567e8641a59d9d139b7dacd062b097dbdf1d7fd3fcd16c21da2f8d1241b74714).

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model

Posted by Tim Vault via TVM Discuss <no...@discuss.tvm.ai>.

Yes, I am using single core. But i don't think it would change prediction time for tvm. I have tried with multiple cores but not much improvement.





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/5) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/d15cd14114c7e8a1fa3d293ed087277560c482d783bab97d169ac4904bf3af11).

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model

Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.

How many CPU cores are you using? Latency number looks like single core inference.





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/4) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/d5cfdc8fbf90cdac1afc457a6aedb26fd25a90f934352a6cbbd257870c3c668b).

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model

Posted by Tim Vault via TVM Discuss <no...@discuss.tvm.ai>.

Yeah, I did but there is no improvement. I noticed that when I load the model I don't do rt.set_input(**params) because I am loading a bytes and I am not sure how to turn the bytes into dict. I'm not sure if that can effect it.





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/2bfc96eeddc609914d0c86c124ff836d8e7aba9a53b3823ab32cc9b7d4e9d3b8).

[TVM Discuss] [Questions] TVM is 10x slower than simple Mxnet model

Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.

Change target to "llvm -mcpu=skylake-avx512"?





---
[Visit Topic](https://discuss.tvm.ai/t/tvm-is-10x-slower-than-simple-mxnet-model/7154/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/ae1110aec91d21393934a697341092631b57975610ed3146fddc96438face1f1).