Skip to content

Commit

Permalink
Add semantic-segmentation to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Rogge authored and Niels Rogge committed Jul 2, 2022
1 parent 284b6e1 commit b3201eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transformers/onnx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ class OnnxConfig(ABC):
"end_logits": {0: "batch", 1: "sequence"},
}
),
"semantic-segmentation": OrderedDict(
{
"logits": {0: "batch", 1: "sequence", 2: "height", 3: "width"},
}
),
"seq2seq-lm": OrderedDict({"logits": {0: "batch", 1: "decoder_sequence"}}),
"sequence-classification": OrderedDict({"logits": {0: "batch"}}),
"token-classification": OrderedDict({"logits": {0: "batch", 1: "sequence"}}),
Expand Down

0 comments on commit b3201eb

Please sign in to comment.