Runtime error: Invalid Rank 6
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 850
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 10
Description
## ❓Question
I am trying to train an updatable coreml model on the device. The model is a classification model trained on 6 classes and accepts an input of shape (1,3). I could successfully convert the model from Keras and run predictions on it. However, when trying to train the model on the device I get the following error:
**[espresso] Training kernels not enabled for engine: 100
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Invalid rank: 6**
Not sure where I am going wrong.
Attaching a screenshot of the mlmodel .

## System Information
MacOS Catalina (10.15.6)
Xcode 11.2.1
iOS 13.3
Coremltools 4.0b2
Python 3.7
Tensorflow 2.2
Contributor guide
Research direction
The issue names no repository file, test, or entry point. Start by reproducing on the listed coremltools, TensorFlow, Xcode, and iOS versions, then investigate device training for the attached model and the reported “Invalid rank: 6” error; done means identifying the cause or a documented compatibility limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python, tensorflow
- Domain
- machine-learning, mobile-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100