When adding an extra torch.Tensor.transpose node as output, the original output of torch.Tensor.to is changed with and without optimization, causing mismatch of model outputs.
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
Describe the issue
ONNX opset version: 14
When adding an extra torch.Tensor.transpose node as output, the original output of torch.Tensor.to is changed with and without optimization, causing mismatch of model outputs.
To reproduce
Sample code:
Output(varible due to torch.nn.Parameter):
Urgency
This is an incorrect functionality implementation. It may cause severe bugs for those systems on the top of ORT.
Platform
Linux
OS Version
Ubuntu 22.04.3 LTS (x86_64)
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.15.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response