transformer 转ONNX0transformer转onnx,直接采用pytorch的原生接口,不依赖huggingface的工具,会更方便,代码如下 哈里斯·3 years ago·artificial-intelligence·nlp·huggingface-transformers