EfficientFormer icon indicating copy to clipboard operation
EfficientFormer copied to clipboard

can't convert to coreml

Open rotem154154 opened this issue 2 years ago • 1 comments

when i try to convert to coreml i get ValueError: node input.19 (gelu) got 2 input(s), expected [1] im using pytorch version 1.12.0 and coremltools version 5.2.0

rotem154154 avatar Aug 06 '22 11:08 rotem154154

I can reproduce the bug with latest PyTorch.

WARNING:root:Torch version 1.13.0a0+08820cb has not been tested with coremltools. You may run into unexpected errors. Torch 1.10.2 is the most recent version that has been tested.
...
...
ValueError: node input.21 (gelu) got 2 input(s), expected [1]

I guess this bug is introduced by latest PyTorch updates. PyTorch <= 1.11 works for me.

liyy201912 avatar Aug 06 '22 20:08 liyy201912