[Apache TVM Discuss] [Questions] Issue: Converting model from pytorch to relay model

2021-11-23 Thread popojames via Apache TVM Discuss
Update: According to: [PyTorch convert function for op 'dictconstruct' not implemented · Issue #1157 · apple/coremltools (github.com)](https://github.com/apple/coremltools/issues/1157) After changing my code from > model = transformers.SqueezeBertForSequenceClassification(config) into >

[Apache TVM Discuss] [Questions] Issue: Converting model from pytorch to relay model

2021-11-23 Thread popojames via Apache TVM Discuss
Hello, @AndrewZhaoLuo @masahi Thanks for your answer. @AndrewZhaoLuo Yes, I can definitely try to converting the model → onnx → relay. But I still wanna try on Pytorch for now. @masahi I have used "torch.jit.trace" to produce trace model, and it looks normal: > SqueezeBertForSequenceCl

[Apache TVM Discuss] [Questions] Issue: Converting model from pytorch to relay model

2021-11-23 Thread masahi via Apache TVM Discuss
[quote="AndrewZhaoLuo, post:2, topic:11538"] The onnx frontend is much more mature. [/quote] Be careful with making such claims :slightly_smiling_face: Actually PT frontend is fairly good and I can generally recommend it for PT users. @popojames You are probably using `torch.jit.script`, since

[Apache TVM Discuss] [Questions] Issue: Converting model from pytorch to relay model

2021-11-23 Thread Andrew Zhao Luo via Apache TVM Discuss
I would suggest looking into converting the model --> onnx --> relay if possible. The onnx frontend is much more mature. --- [Visit Topic](https://discuss.tvm.apache.org/t/issue-converting-model-from-pytorch-to-relay-model/11538/2) to respond. You are receiving this because you enabled m

[Apache TVM Discuss] [Questions] Issue: Converting model from pytorch to relay model

2021-11-23 Thread popojames via Apache TVM Discuss
Hello TVM developers and community, I am trying to convert the Transformer-like models such as BERT from different platforms (Tensorflow or PyTorch) to relay models. For TensorFlow model, I was able to convert them into relay models successfully by referring to this tutorial: [Deploy a Huggin