Open teaglin opened 1 year ago
@teaglin - we need more information here:
1 - When you say the exported models "fails to run", what do you mean? When does it fail? What error message do you get?
2 - In addition to the code for generating the Keras model, please also include the code you use to convert the Keras model to Core ML.
@TobyRoseman
I updated the original post. I apologize the wrong Capsule Network implementation was posted β I have corrected it and included information for both your questions.
@teaglin - thanks for sharing the output information. It looks like we are missing support for a TensorFlow op you need. I'm still not able to reproduce this issue. Your code does not have any of the necessary import statements. Also on this line:
m = Model(inputs=inputs, outputs=[x], name='CapsNet_Example')
Model
is not defined.
@TobyRoseman missing import.
from keras.models import Model
@teaglin - sounds good, I just wanted to make sure it was not a locally defended model.
I can now reproduce the issue. I have updated the original code in the issue description.
πDescribing the bug
I am trying to convert a custom Keras layer that implements Capsule Network. The model exports but fails to load and run in Xcode.
To Reproduce
Output
System environment (please complete the following information):