This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
Issue with constant padding operator #568
Labels
bug
Unexpected behaviour that should be corrected (type)
🐞Describe the bug
Constant padding operator seems not properly managed by the onnx to coreml converter tool. When importing in xcode the mlmodel can't be compiled as the padding axis are misinterpreted.
Trace
coremlc: Error: compiler error: Espresso exception: "Invalid blob shape": generic_elementwise_kernel: cannot broadcast [7, 8, 2, 1, 1] and [8, 8, 1, 1, 1]
Command CoreMLModelCompile failed with a nonzero exit code
To Reproduce
Below is the code to create the mlmodel (padding then addition). The onnx file is first created using pytorch (torch.onnx.export).
The onnx model can't be attached but can be created with above code.
System environment (please complete the following information):
The text was updated successfully, but these errors were encountered: