'AssertionError: Duplicate registrations for type 'experimentalOptimizer' when converting ssd model to tflite format

I was trying to convert my trained ssd model to tflite format. But I always face to this below error.

error I faced

Here is my code:

//----------------------------

import tensorflow as tf

converter = tf.lite.TFLiteConverter.from_saved_model("/TensorFlow/workspace/traning_demo/exported-models/my_model/saved_model/") tflite_model = converter.convert()

with open('tflite_test2.tflite', 'wb') as f: f.write(tflite_model)

//------------------

Does anyone have solution for this problem? Thank you very much

Best regards



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source