Skip to content

Commit 6b1899f

Browse files
committed
Fix distilbert export
1 parent ecfb07e commit 6b1899f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/transformers/models/distilbert/configuration_distilbert.py

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

141141

142-
# Copied from transformers.models.bert.configuration_bert.BertOnnxConfig with Roberta->DistilBert
143142
class DistilBertOnnxConfig(OnnxConfig):
144143
@property
145144
def inputs(self) -> Mapping[str, Mapping[int, str]]:
@@ -150,5 +149,5 @@ def inputs(self) -> Mapping[str, Mapping[int, str]]:
150149

151150
@property
152151
def outputs(self) -> Mapping[str, Mapping[int, str]]:
153-
return {"last_hidden_state": {0: "batch", 1: "sequence"}, "pooler_output": {0: "batch"}}
152+
return {"last_hidden_state": {0: "batch", 1: "sequence"}}
154153

0 commit comments

Comments
 (0)