Skip to content

Commit 5cb5006

Browse files
committed
update
1 parent 44c20b5 commit 5cb5006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_unittests/ut_xrun_doc/test_torch_test_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ def test_replace_string_by_dynamic(self):
9393
proc = replace_string_by_dynamic(example)
9494
sproc = (
9595
str(proc)
96-
.replace("_DimHint(type=<_DimHintType.DYNAMIC: 3>", "DYN")
96+
.replace("_DimHint(type=<_DimHintType.DYNAMIC: 3>)", "DYN")
9797
.replace(" ", "")
9898
.replace("<_DimHint.DYNAMIC:3>", "DYN")
9999
)
100100
self.assertEqual(
101-
"{'input_ids':{0:DYN),1:DYN)},'attention_mask':({0:DYN),1:DYN)},),'position_ids':[{0:DYN),1:DYN)}]}",
101+
"{'input_ids':{0:DYN,1:DYN},'attention_mask':({0:DYN,1:DYN},),'position_ids':[{0:DYN,1:DYN}]}",
102102
sproc,
103103
)
104104

0 commit comments

Comments
 (0)