Skip to content

Commit

Permalink
use OnnxConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximovaIrina committed Dec 23, 2021
1 parent c1de9ad commit d1be26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transformers/models/ibert/configuration_ibert.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from collections import OrderedDict
from typing import Mapping

from transformers.onnx import OnnxConfigWithPast
from transformers.onnx import OnnxConfig

from ...configuration_utils import PretrainedConfig
from ...utils import logging
Expand Down Expand Up @@ -127,12 +127,12 @@ def __init__(
self.force_dequant = force_dequant


class IBertOnnxConfig(OnnxConfigWithPast):
class IBertOnnxConfig(OnnxConfig):
@property
def inputs(self) -> Mapping[str, Mapping[int, str]]:
return OrderedDict(
[
("input_ids", {0: "batch", 1: "sequence"}),
("attention_mask", {0: "batch", 1: "sequence"}),
]
)
)

0 comments on commit d1be26d

Please sign in to comment.