optimizer the transformer (bert) model, raise this error "assert node is not None"
To reproduce
I am use this script and datasets sequence labeling, and running just five epoch.
After convert the torch model to onnx model, then use the following command to optimizer onnx model.
python -m onnxruntime.transformers.optimizer --input xxx.onnx --output xxx_optimizer.onnx
Describe the issue
optimizer the transformer (bert) model, raise this error "assert node is not None"
To reproduce
I am use this script and datasets sequence labeling, and running just five epoch.
After convert the torch model to onnx model, then use the following command to optimizer onnx model. python -m onnxruntime.transformers.optimizer --input xxx.onnx --output xxx_optimizer.onnx
Urgency
No response
Platform
Linux
OS Version
ubuntu 18
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.6
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
No response