Open msluszniak opened 1 month ago
I discovered that the expected number of arguments to cumsum op in coremltools might be wrong while exporting PyTorch module to *.pte file (executorch). See https://github.com/apple/coremltools/blob/8b7048ebc034a8b40e48c39df3f33ba9f60feda9/coremltools/converters/mil/frontend/torch/ops.py#L931 Number of arguments is set to 3 while only two are used. Indeed, in my export, I got an error that cumsum op expects 3 arguments while only 2 were provided. Changing this value to 2 fixed suppressed the error.
cumsum
I'm not able to reproduce the error with small code sample.
Discovered this while exporting Pytorch model to executorch with CoreML backend.
Right now the torch version coremltools officially supports is 2.3.0 (https://github.com/apple/coremltools/blob/main/coremltools/_deps/__init__.py#L156), while your enviroment got 2.5.0.
2.3.0
2.5.0
I discovered that the expected number of arguments to
cumsum
op in coremltools might be wrong while exporting PyTorch module to *.pte file (executorch). See https://github.com/apple/coremltools/blob/8b7048ebc034a8b40e48c39df3f33ba9f60feda9/coremltools/converters/mil/frontend/torch/ops.py#L931 Number of arguments is set to 3 while only two are used. Indeed, in my export, I got an error thatcumsum
op expects 3 arguments while only 2 were provided. Changing this value to 2 fixed suppressed the error.To Reproduce
I'm not able to reproduce the error with small code sample.
System environment (please complete the following information):
Additional context
Discovered this while exporting Pytorch model to executorch with CoreML backend.