transformers.convert_graph_to_onnx.quantize
fails in unit tests
#18614
Labels
transformers.convert_graph_to_onnx.quantize
fails in unit tests
#18614
System Info
transformers
version: 4.22.0.dev0tensorflow/tensorflow:latest
Docker image for this environment, then usedpip install -e '.[dev,onnx]'
Other:
onnxruntime
version: 1.12.1Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Run
RUN_SLOW=true pytest tests/onnx/test_onnx.py
Get failures:
Expected behavior
The unit tests should pass.
I believe this failure is due to
onnxruntime.quantization.quantize
which is a module that contains functionsquantize_static
andquantize_dynamic
. The API may have changed since the unit test was written. I'm not sure which is the one to use for the unit tests. Even after fixing, not sure howtransformers
should handle the different versions ofonnxruntime
or should the required version change insetup.py
.See https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/python/tools/quantization/quantize.py
The text was updated successfully, but these errors were encountered: