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

getitem batching rule failure #859

@zou3519

Description

@zou3519

repro:

import torch
import torch.autograd.forward_ad as fwAD
from functorch import make_fx, vmap

x = torch.arange(3 * 5 * 5 * 5).view(3, 5, 5, 5)

def select(x):
    return x[(0, 0), :, (1, 1)]

y = vmap(select)(x)
print(y.shape)

print(select(x[0]).shape)

y = make_fx(vmap(select))(x)
print(y.code)

gonna xfail for now

Metadata

Metadata

Assignees

Labels

high priorityThese issues are at the top of mind for us.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions