coremltools icon indicating copy to clipboard operation
coremltools copied to clipboard

`rename_features` bug

Open kinghchan opened this issue 7 months ago • 1 comments

https://github.com/apple/coremltools/blob/main/coremltools/models/utils.py#L677

Is this line incorrectly indented?

This causes renaming outputs to corrupt the mlmodel (not mlpackage): RuntimeWarning: You will not be able to run predict() on this Core ML model. Underlying exception message was: Error compiling model: "compiler error: Error reading protobuf spec. validator error: Interface specifies output 'output' which is not produced by any layer in the neural network.".

kinghchan avatar Apr 28 '25 17:04 kinghchan

That indentation does look suspicious. Can you give us steps to reproduce this issue? Or better yet, send us a pull request with a unit test.

TobyRoseman avatar Apr 28 '25 19:04 TobyRoseman