Skip to content

Tracking issue: Incorrect Meta Strides / Turn On PyDispatcher in FakeTensor Mode #145094

Open
@eellison

Description

@eellison

🐛 Describe the bug

Incorrect Strides can manifest in errors within torch.compile. Potentially what makes them trickier is that they only sometimes cause errors. An incorrect stride can lay dormant for a while and then cause a problem.

See, this discussion with @ezyang, @bdhirsh and myself about incorrect strides.

There are a number of known issues that yet unfixed. Some of them have outstanding prs, please check with the pr author before taking it on.

Additionally, there are a number of stride & other issues that have been exposed by enabling PyDispatcher in FakeTensorMode. This causes us to potentially route through different decompositions and metas. It is what we use in torch.compile, which means we lack coverage of this mode in our other tests.

Tests exposed by this turning this on:

  • dropout
  • MultiLabelMarginLoss

Fft tests as well, but that might be related to _fft_r2c in the existing issue.

Versions

master

cc @chauhang @penguinwu @SherlockNoMad @zou3519 @bdhirsh @yf225

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: decompositionsTopics related to decomposition (excluding PrimTorch)module: fakeTensormodule: pt2-dispatcherPT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,oncall: pt2triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions