Skip to content

Commit 7256b14

Browse files
committed
format
1 parent fce6c58 commit 7256b14

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

optimum/exporters/onnx/__main__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,7 @@ def main_export(
404404
**loading_kwargs,
405405
)
406406

407-
needs_pad_token_id = (
408-
task == "text-classification"
409-
and getattr(model.config, "pad_token_id", None) is None
410-
)
407+
needs_pad_token_id = task == "text-classification" and getattr(model.config, "pad_token_id", None) is None
411408

412409
if needs_pad_token_id:
413410
if pad_token_id is not None:

tests/onnxruntime/test_modeling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ def test_trust_remote_code(self):
12271227
class ORTModelForQuestionAnsweringIntegrationTest(ORTModelTestMixin):
12281228
SUPPORTED_ARCHITECTURES = [
12291229
"albert",
1230-
"bart",
1230+
"bart",
12311231
"bert",
12321232
# "big_bird",
12331233
# "bigbird_pegasus",
@@ -1592,7 +1592,7 @@ def test_compare_to_io_binding(self, model_arch):
15921592
class ORTModelForSequenceClassificationIntegrationTest(ORTModelTestMixin):
15931593
SUPPORTED_ARCHITECTURES = [
15941594
"albert",
1595-
"bart",
1595+
"bart",
15961596
"bert",
15971597
# "big_bird",
15981598
# "bigbird_pegasus",

0 commit comments

Comments
 (0)