Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::bitwise_and' to ONNX opset version 14 is not supported #925

Open
amd-vivekag opened this issue Feb 13, 2025 · 0 comments

Comments

@amd-vivekag
Copy link

Steps to reproduce:

python run.py -t <testname> -b llvm-cpu -d local-task -c x86_64-linux-gnu  --mode=cl-onnx-iree --cleanup=3 --get-metadata -v

Tests failing:

hf_Mistral-7B-Instruct-v0.2-GPTQ

Should get following Error/Stacktrace:

  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/optimum/exporters/onnx/convert.py", line 563, in export_pytorch
    onnx_export(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/__init__.py", line 383, in export
    export(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/utils.py", line 495, in export
    _export(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/utils.py", line 1428, in _export
    graph, params_dict, torch_out = _model_to_graph(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/utils.py", line 1057, in _model_to_graph
    graph = _optimize_graph(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/utils.py", line 632, in _optimize_graph
    graph = _C._jit_pass_onnx(graph, operator_export_type)
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/torch/onnx/utils.py", line 1709, in _run_symbolic_function
    raise errors.UnsupportedOperatorError(
torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::bitwise_and' to ONNX opset version 14 is not supported. Support for this operator was added in version 18, try exporting with this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant