Skip to content

Commit 49916c9

Browse files
committed
Fix Copied from
1 parent cfdf69a commit 49916c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/transformers/models/albert/configuration_albert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __init__(
155155
self.position_embedding_type = position_embedding_type
156156

157157

158-
# Copied from transformers.models.bert.configuration_bert.BertOnnxConfig with Bert->Albert
158+
# Copied from transformers.models.bert.configuration_bert.BertOnnxConfig with Roberta->Albert
159159
class AlbertOnnxConfig(OnnxConfig):
160160
@property
161161
def inputs(self) -> Mapping[str, Mapping[int, str]]:

src/transformers/models/distilbert/configuration_distilbert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def num_hidden_layers(self):
139139
return self.n_layers
140140

141141

142+
# Copied from transformers.models.bert.configuration_bert.BertOnnxConfig with Roberta->DistilBert
142143
class DistilBertOnnxConfig(OnnxConfig):
143144
@property
144145
def inputs(self) -> Mapping[str, Mapping[int, str]]:

0 commit comments

Comments
 (0)