Error converting keras model to tfjs: duplicate weight name Variable
问题 Follwing the tutorial at https://www.tensorflow.org/tutorials/images/hub_with_keras resulted in a file model.h5 . Converting to tensorflow-js with the command tensorflowjs_converter --input_format keras ./model.h5 /tmp/jsmodel/ failed with Exception: Error dumping weights, duplicate weight name Variable Why is this and how can it be fixed? MCVE from __future__ import absolute_import, division, print_function import tensorflow as tf import tensorflow_hub as hub from tensorflow.keras import