[ONNX] Support complex types #86746
Labels
module: complex
Related to complex number support in PyTorch
module: onnx
Related to torch.onnx
needs design
onnx-needs-info
needs information from the author / reporter before ONNX team can take action
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Complex types are currently not tracible in the onnx export process. In ops like STFT, torch uses complex for the aten operators. Since ONNX has no plans for now to expand its complex support, we can consider creating a pass to convert complex inputs to real (and later cancel the nodes out like we do for quantized tensors) and consume them as real values.
This is blocking for STFT and other complex operator support.
The text was updated successfully, but these errors were encountered: