You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a model to compute fft-coefficients of an onedimensional timeseries.
The output of the DFT-Operator is 3-dimensional, from these the (complex) coeffitients are gathered.
From them I want to compute the absolute value of these complex numbers.
The output in onnxscript eager mode works fine, but inferencing with onnxruntime throws an error:
Fail: [ONNXRuntimeError] : 1 : FAIL : Node (n11) Op (Gather) [ShapeInferenceError] axis must be in [-r, r-1]
After shape inferencing the model looks like this:
It looks like the output shape of the DFT-Operator is wrong?
Am I missing something?
behavior
I created a model to compute fft-coefficients of an onedimensional timeseries.
The output of the DFT-Operator is 3-dimensional, from these the (complex) coeffitients are gathered.
From them I want to compute the absolute value of these complex numbers.
The output in onnxscript eager mode works fine, but inferencing with onnxruntime throws an error:
Fail: [ONNXRuntimeError] : 1 : FAIL : Node (n11) Op (Gather) [ShapeInferenceError] axis must be in [-r, r-1]
After shape inferencing the model looks like this:
![test](https://private-user-images.githubusercontent.com/133223914/341140381-30cf4677-5972-4f92-b4f9-40c5406aa11a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3OTIzMzUsIm5iZiI6MTcyMDc5MjAzNSwicGF0aCI6Ii8xMzMyMjM5MTQvMzQxMTQwMzgxLTMwY2Y0Njc3LTU5NzItNGY5Mi1iNGY5LTQwYzU0MDZhYTExYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMlQxMzQ3MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNTMzYzI5OGUxMjY5MDBmMjZiNTdiNTA4MGY1ZmUyOGQ2OTZlOTVlNWY5OGQ2NDA1OTZlY2EwMTMyODUwNzI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tRHnU_rlWJ2VMPApHZdONPDEsn4J_iu-mJDtNGerTII)
It looks like the output shape of the DFT-Operator is wrong?
Am I missing something?
code to reproduce
The text was updated successfully, but these errors were encountered: