coremltools icon indicating copy to clipboard operation
coremltools copied to clipboard

[ExecuTorch] Cannot Convert Empty Model

Open YifanShenSZ opened this issue 1 year ago • 0 comments

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 avatar Apr 04 '24 00:04 YifanShenSZ