[ExecuTorch] Cannot Convert Empty Model
Open
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
Assessment
This issue has not been assessed yet.