Multiple Inputs/Outputs with torch.onnx.dynamo_export #127128
Labels
module: onnx
Related to torch.onnx
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
I am getting an error trying to export a model with multiple inputs and outputs.
And for the output of the forward method, my model has 4 outputs.
I am returning two maps that have strings as keys and tensors as values for the first two outputs and two tensors for the last two outputs.
I keep getting the error
and when I tried dragging the sarif file into the website listed, i get a blank page that says no results found.
Are multiple inputs suppored when converting to onnx with dynamo_export? Are dictionaries supported as outputs? From what I understood, ONNX supports maps as outputs. I have a complex architecture so flattening all of these outputs into a single tensor is not ideal at all for me and I would prefer to keep my four outputs in the data structure they currently are in
Versions
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A
OS: macOS 14.5 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.3.9.4)
CMake version: Could not collect
Libc version: N/A
Python version: 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)] (64-bit runtime)
Python platform: macOS-14.5-arm64-arm-64bit
Is CUDA available: N/A
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A
CPU:
Apple M1
Versions of relevant libraries:
[pip3] No relevant packages
[conda] Could not collect
The text was updated successfully, but these errors were encountered: