Skip to content

DecompCrossRefMode not dispatching correctly #85405

@fdrocha

Description

@fdrocha

🐛 Describe the bug

I came across this while working on #85403.

I had to implement decompositions both for both upsample_bicubic2d.default and upsample_bicubic2d.vec.
The second one is CompositeExplicit and just calls the first, so it seems I should haven't had to implement it?
However, if I don't, then then default decomp is never called in the relevant tests in test/test_decomp.py.

You can check this by commenting out the upsample_bicubic2d_vec in torch/_decomp/decompositions.py in the branch above and adding an assert False to first line of upsample_bicubic2d_default. If you then run pytest tests/test_decomp.py -vk interpolate_bicubic you can see that the assert never triggers.

Any thoughts @ezyang, @ngimel, @jansel, @Chillee?

Versions

#85403

cc @Chillee @ezyang @zou3519 @albanD @samdow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions