lonePatient / NeZha_Chinese_PyTorch

NEZHA: Neural Contextualized Representation for Chinese Language Understanding
MIT License
261 stars 53 forks source link

大佬可以提供转换到onnx的脚本吗? #1

Closed ghost closed 3 years ago

lonePatient commented 3 years ago

@passion765 网上或者github有很多的,我自己之前转没啥问题的,转onnx没啥难度的啊,你是转化遇到问题?

ghost commented 3 years ago

@lonePatient

非常感谢大佬回复 , 我之前用torch.onnx.export转模型的遇到raise RuntimeError('Unsupported: ONNX export of Slice with dynamic inputs. DynamicSlice 这样的错误,后来改了下opset_version 改成10可以转了。