coremltools
coremltools copied to clipboard
`rename_features` bug
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.".
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.