Exporting model having torch.histc operation to onnx giving error

Hi,
I am trying to export the model which has a torch.histc() operation in it to onnx but it gives an error.
RuntimeError: Exporting the operator histc to ONNX opset version 14 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub.
I have tried to change with a different opset version but it still gives the same error.
Will really appreciate if any one can help, Thanks

Based on the error message it seems that histc is not a supported op in ONNX, so feel free to create a feature request on GitHub and mention in the feature request if you would be interested in implementing it.

1 Like