Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 777ac5e

Browse files
committed
Fixed unsupported op error message
1 parent 806c450 commit 777ac5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_vmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def out_op(x, y):
183183
tensor = torch.randn(2)
184184
# The fallback doesn't support TensorList
185185
with self.assertRaisesRegex(RuntimeError, 'Batching rule not implemented'):
186-
vmap(lambda t: torch.atleast_1d([t]))(tensor)
186+
vmap(lambda t: torch.vstack([t]))(tensor)
187187

188188
# Don't support non-tensor returns. This is a limitation of vmap;
189189
# functions that don't return tensors must be special cased

0 commit comments

Comments
 (0)