Skip to content

Commit

Permalink
ONNXToDT: changes to order of OrderedDict elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ra9hur committed Oct 25, 2024
1 parent 8387590 commit 69802e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/exporters/onnx/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ class OnnxConfig(ExportConfig, ABC):
),
"reinforcement-learning": OrderedDict(
{
"return_preds": {0: "batch_size", 1: "sequence_length"},
"action_preds": {0: "batch_size", 1: "sequence_length", 2: "act_dim"},
"state_preds": {0: "batch_size", 1: "sequence_length", 2: "state_dim"},
"action_preds": {0: "batch_size", 1: "sequence_length", 2: "act_dim"},
"return_preds": {0: "batch_size", 1: "sequence_length"},
"last_hidden_state": {0: "batch_size", 1: "sequence_length", 2: "last_hidden_state"},
}
),
Expand Down

0 comments on commit 69802e9

Please sign in to comment.