apple / apple/coremltools

[ExecuTorch] Cannot Convert Empty Model

Open
#2,184 0 comments 0 reactions 1 assignee Claimed by @YifanShenSZ View on GitHub
ExecuTorch feature request triaged
Dominant language
Python
Stars
5.4k
Forks
850
Avg merge
4d 5h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.