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

Commit 677740a

Browse files
authored
broadcast_to just works thanks to expand (#191)
1 parent 8ab5853 commit 677740a

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

functorch/csrc/BatchRulesStopDecomposition.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ TORCH_LIBRARY_IMPL(aten, FT_BATCHED_KEY, m) {
159159
STOP_DECOMPOSE(blackman_window);
160160
STOP_DECOMPOSE(blackman_window.periodic);
161161
STOP_DECOMPOSE(block_diag);
162-
STOP_DECOMPOSE(broadcast_to);
163162
STOP_DECOMPOSE(can_cast);
164163
STOP_DECOMPOSE(cartesian_prod);
165164
STOP_DECOMPOSE(cat.names);

test/test_ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ def test():
505505
@ops(functorch_lagging_op_db + additional_op_db, allowed_dtypes=(torch.float,))
506506
@skipOps('TestOperators', 'test_vjpvmap', vjp_fail.union({
507507
xfail('__getitem__'),
508-
xfail('broadcast_to'),
509508
xfail('clamp', ''),
510509
xfail('dsplit'),
511510
xfail('fill_'),

test/test_vmap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,6 @@ class TestVmapOperatorsOpInfo(TestCase):
29732973
@ops(functorch_lagging_op_db + additional_op_db, allowed_dtypes=(torch.float,))
29742974
@skipOps('TestVmapOperatorsOpInfo', 'test_vmap_exhaustive', {
29752975
# These are ops that we can't generate fallbacks for
2976-
xfail('broadcast_to'),
29772976
xfail('dsplit'),
29782977
xfail('fill_'),
29792978
xfail('gradient'),
@@ -3023,7 +3022,6 @@ def test_vmap_exhaustive(self, device, dtype, op):
30233022
@ops(functorch_lagging_op_db + additional_op_db, allowed_dtypes=(torch.float,))
30243023
@skipOps('TestVmapOperatorsOpInfo', 'test_op_has_batch_rule', {
30253024
# xfail('__getitem__'),
3026-
xfail('broadcast_to'),
30273025
xfail('cdist'),
30283026
xfail('complex'),
30293027
xfail('copysign'),

0 commit comments

Comments
 (0)