Skip to content

Commit cd8c299

Browse files
committed
fix test_replace_string_by_dynamic
1 parent 0c879b6 commit cd8c299

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_unittests/ut_helpers/test_torch_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def test_replace_string_by_dynamic(self):
240240
"_DimHint(type=<_DimHintType.DYNAMIC:3>,min=None,max=None,_factory=True)",
241241
"DYN",
242242
)
243+
.replace("DimHint(DYNAMIC)", "DYN")
243244
)
244245
self.assertEqual(
245246
"{'input_ids':{0:DYN,1:DYN},'attention_mask':({0:DYN,1:DYN},),'position_ids':[{0:DYN,1:DYN}]}",

0 commit comments

Comments
 (0)