Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Dec 18, 2024
1 parent a47cd96 commit 7f0cb92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/exporters/onnx/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Supported architectures from [🤗 Transformers](https://huggingface.co/docs/tra
- M2-M100
- Marian
- MarkupLM
- Maskformer
- MaskFormer
- MBart
- MGP-STR
- Mistral
Expand Down
2 changes: 1 addition & 1 deletion optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ class MobileNetV2OnnxConfig(MobileNetV1OnnxConfig):
pass


class MaskformerOnnxConfig(ViTOnnxConfig):
class MaskFormerOnnxConfig(ViTOnnxConfig):
# torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::einsum' to ONNX opset version 11 is not supported.
# Support for this operator was added in version 12, try exporting with this version.
DEFAULT_ONNX_OPSET = 12
Expand Down
2 changes: 1 addition & 1 deletion optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ class TasksManager:
"maskformer": supported_tasks_mapping(
"feature-extraction",
"image-segmentation",
onnx="MaskformerOnnxConfig",
onnx="MaskFormerOnnxConfig",
),
"mbart": supported_tasks_mapping(
"feature-extraction",
Expand Down

0 comments on commit 7f0cb92

Please sign in to comment.