Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fx Pass to remove unbind -> getitem chains #361

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jan 20, 2024

  1. Add Fx Pass to remove unbind -> getitem chains

    RNN lowerings provided by pytorch use unbind to convert hidden layer
    outputs into a list, and then index it later. This doesn't fit well
    with FxImporter, because it doesn't really have a concept of a list.
    This pass takes these chains, and converts them into torch.select,
    so that we don't have lists again.
    Groverkss committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    3af36b8 View commit details
    Browse the repository at this point in the history
  2. Remove unrelated changes

    Groverkss committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    f595a01 View commit details
    Browse the repository at this point in the history