Skip to content

Commit 5003335

Browse files
committed
fix ut
1 parent 661673b commit 5003335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_unittests/ut_torch_export_patches/test_patch_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_rewrite_PLBartEncoderLayer(self):
355355
rewritten = transform_method(PLBartEncoderLayer.forward, verbose=self.verbose)
356356
self.assertIn(
357357
(
358-
"hidden_states, = torch.cond(hidden_states.dtype == torch.float16 and "
358+
"torch.cond(hidden_states.dtype == torch.float16 and "
359359
"(torch.isinf(hidden_states).any() or torch.isnan(hidden_states).any()), "
360360
"branch_cond_then_1, branch_cond_else_1, [hidden_states])"
361361
),

0 commit comments

Comments
 (0)