UnsupportedOperatorError: Exporting the operator 'aten::scaled_dot_product_attention' to ONNX opset version 12 is not supported. Support for this operator was added in version 14, try exporting with this version.
The following code is used
from setfit import SetFitModel
model = SetFitModel._from_pretrained("setfit_model/")
from setfit.exporters.onnx import export_onnx
output_path = "model.onnx"
export_onnx(model.model_body,
model.model_head,
opset=12,
output_path=output_path)
UnsupportedOperatorError: Exporting the operator 'aten::scaled_dot_product_attention' to ONNX opset version 13 is not supported. Support for this operator was added in version 14, try exporting with this version.
UnsupportedOperatorError: Exporting the operator 'aten::scaled_dot_product_attention' to ONNX opset version 12 is not supported. Support for this operator was added in version 14, try exporting with this version.
The following code is used
Env:
while trying to use opset version 14,
I get this error
UnsupportedOperatorError: Exporting the operator 'aten::scaled_dot_product_attention' to ONNX opset version 13 is not supported. Support for this operator was added in version 14, try exporting with this version.