Skip to content

Commit 9c9ba04

Browse files
committed
bart
1 parent 4910cba commit 9c9ba04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_unittests/ut_tasks/test_tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def test_fill_mask(self):
207207
)
208208

209209
@hide_stdout()
210+
@requires_transformers("4.53.99")
210211
def test_feature_extraction_bart_base(self):
211212
mid = "facebook/bart-base"
212213
data = get_untrained_model_with_inputs(mid, verbose=1, add_second_input=True)

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_patches(mod, verbose: int = 0) -> Tuple[str, List[Any]]:
3333
doc = v.__doc__.lstrip()
3434
if doc.startswith("manual patch"):
3535
continue
36-
reg = re.compile("[[]patch:([a-z_A-Z.]+)[]]")
36+
reg = re.compile("[\\[]patch:([a-z_A-Z.]+)[\\]]")
3737
fall = reg.findall(doc)
3838
assert (
3939
len(fall) == 1

0 commit comments

Comments
 (0)