Open cesarrodrig opened 10 months ago
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
May be the reason for the import package position
sys.path.append("YOUR PATH/onnxruntime/onnxruntime/python/tools/transformers/")
Describe the issue
When using
onnxruntime/python/tools/transformers/models/longformer/convert_to_onnx.py
and following its instructions, there are import errors, specificallyfrom torch_onnx_export_helper import torch_onnx_export
andfrom onnx_model_bert import BertOnnxModel
. I've putting the steps into a Dockerfile running python 3.8 to make sure the environment was the same and I still get the import errors.To reproduce
Dockerfile:
Urgency
No response
Platform
Linux
OS Version
debian:11
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
922a2f0
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response