Closed khursani8 closed 4 years ago
I'd like to use a sample model to debug it if possible. Can you provide an IR model (.bin/.xml)?
I just fixed the Gather and ShapeOf conversion bug. 3b4a7a0690eb47d3a478091b17b24b51c261e308 The following link is tflite after conversion.
Model structure
Wow, after using latest script I can convert without any error. I will take a look at the tflite model you share
If you are ok with it, can you share how your approach solving the bug? Thanks :)
I was remiss in transposing indices from NCHW to NHWC. I also changed ShapeOf from tf.keras.backend.shape to tf.shape and fixed the return dtype to int64. Also, ReduceProd and Subtract were added because they were unsupported layers.
Ohhh, now the code change make sense Thanks again
Currently the conversion work fine so far until at Gather operation It received multiple indices based on the screenshot below which will trigger: *** TypeError: only size-1 arrays can be converted to Python scalars
I tried take a look at Netron but don't know what to do based on the graph
Thanks