Exporting the operator 'aten::linalg_inv' to ONNX opset version 18 is not supported.
Labels: module: onnx, triaged

While executing below code to export the model to onnx,
```
crops_flat = torch.rand([2, 3, 256, 256])
        new_intrinsic_matrix_flat = torch.rand([2, 3, 3])
        print(crops_flat.shape, type(crops_flat))
        print(new_intrinsic_matrix_flat.shape, type(new_intrinsic_matrix_flat))
        torch.onnx.export(model,
                          (([crops_flat, new_intrinsic_matrix_flat])),
                          "model.onnx",
                          input_names=['crops_flat', 'new_intrinsic_matrix_flat'],
                          output_names=['output'],
                          dynamic_axes={'crops_flat': {0: 'batch_size'},
                                        'new_intrinsic_matrix_flat': {0: 'batch_size'}},
                          opset_version=18,
                          verbose=True
                          )
```

I got this error. 
```

============= Diagnostic Run torch.onnx.export version 2.0.1+cu117 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 1 ERROR ========================
ERROR: missing-standard-symbolic-function
=========================================
Exporting the operator 'aten::linalg_inv' to ONNX opset version 18 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: https://github.com/pytorch/pytorch/issues.
None
<Set verbose=True to see more details>


Traceback (most recent call last):
  File "D:\amnt\Quidich_pose_estimation_poc\runbox\release\runbox\standalone_metrabs_torch.py", line 106, in <module>
    multiperson_model_pt = load_multiperson_model().cuda()
  File "D:\amnt\Quidich_pose_estimation_poc\runbox\release\runbox\standalone_metrabs_torch.py", line 52, in load_multiperson_model
    model_pytorch = load_crop_model()
  File "D:\amnt\Quidich_pose_estimation_poc\runbox\release\runbox\standalone_metrabs_torch.py", line 82, in load_crop_model
    torch.onnx.export(model,
  File "C:\Users\harsh\anaconda3\envs\runbox\lib\site-packages\torch\onnx\utils.py", line 506, in export
    _export(
  File "C:\Users\harsh\anaconda3\envs\runbox\lib\site-packages\torch\onnx\utils.py", line 1548, in _export
    graph, params_dict, torch_out = _model_to_graph(
  File "C:\Users\harsh\anaconda3\envs\runbox\lib\site-packages\torch\onnx\utils.py", line 1117, in _model_to_graph
    graph = _optimize_graph(
  File "C:\Users\harsh\anaconda3\envs\runbox\lib\site-packages\torch\onnx\utils.py", line 665, in _optimize_graph
    graph = _C._jit_pass_onnx(graph, operator_export_type)
  File "C:\Users\harsh\anaconda3\envs\runbox\lib\site-packages\torch\onnx\utils.py", line 1901, in _run_symbolic_function
    raise errors.UnsupportedOperatorError(
torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::linalg_inv' to ONNX opset version 18 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: https://github.com/pytorch/pytorch/issues.

Process finished with exit code 1

```

Can anyone help me with this?

### Versions

Here the env

```
PyTorch version: 2.0.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Home Single Language
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.26.4
Libc version: N/A

Python version: 3.10.12 | packaged by Anaconda, Inc. | (main, Jul  5 2023, 19:01:18) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is CUDA available: True
CUDA runtime version: 11.7.64
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1660 Ti
Nvidia driver version: 536.25
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=2400
DeviceID=CPU0
Family=205
L2CacheSize=1024
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=2400
Name=Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
ProcessorType=3
Revision=

Versions of relevant libraries:
[pip3] msgpack-numpy==0.4.8
[pip3] numpy==1.23.5
[pip3] pytorch-lightning==2.0.7
[pip3] pytorch3d==0.7.4
[pip3] torch==2.0.1+cu117
[pip3] torchaudio==2.0.2+cu117
[pip3] torchmetrics==0.11.4
[pip3] torchvision==0.15.2+cu117
[conda] msgpack-numpy             0.4.8                    pypi_0    pypi
[conda] numpy                     1.23.5                   pypi_0    pypi
[conda] pytorch-lightning         2.0.7                    pypi_0    pypi
[conda] pytorch3d                 0.7.4                    pypi_0    pypi
[conda] torch                     2.0.1+cu117              pypi_0    pypi
[conda] torchaudio                2.0.2+cu117              pypi_0    pypi
[conda] torchmetrics              0.11.4                   pypi_0    pypi
[conda] torchvision               0.15.2+cu117             pypi_0    pypi
```