Hi,
Interchange return parameters of “max_pool2d_with_indices” function in PYTHON_INSTALLATION_PATH/site-packages/torch/onnx/symbolic.py file.
Try this modification and let me know if it works or not.