Skip to content
Discussion options

You must be logged in to vote

If you know the expected output shapes. One hack is to load ONNX and edit it directly.

import onnx
m = onnx.load("temp_out.onnx")
# edit m.graph.output below
...

It's possible to provide dynamic_axis for outputs in torch.onnx._export, but it will be error-prone.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iprovalo
Comment options

Answer selected by iprovalo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants