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

[ExecuTorch] Cannot Convert Empty Model #2184

Open
YifanShenSZ opened this issue Apr 4, 2024 · 0 comments
Open

[ExecuTorch] Cannot Convert Empty Model #2184

YifanShenSZ opened this issue Apr 4, 2024 · 0 comments
Assignees
Labels
ExecuTorch feature request Functionality does not currently exist, would need to be created as a new feature (type) triaged Reviewed and examined, release as been assigned if applicable (status)

Comments

@YifanShenSZ
Copy link
Collaborator

This toy model fails in ExecuTorch

        class IndexModel(torch.nn.Module):
            def forward(self, x):
                if len(shape) == 2:
                    return x[:, :]
                elif len(shape) == 4:
                    return x[:]

It contains only a no op, so ExecuTorch would simply return its input

However, in Core ML input and output must have different names

@YifanShenSZ YifanShenSZ added feature request Functionality does not currently exist, would need to be created as a new feature (type) triaged Reviewed and examined, release as been assigned if applicable (status) ExecuTorch labels Apr 4, 2024
@YifanShenSZ YifanShenSZ self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExecuTorch feature request Functionality does not currently exist, would need to be created as a new feature (type) triaged Reviewed and examined, release as been assigned if applicable (status)
Projects
None yet
Development

No branches or pull requests

1 participant