'Error While Encoding with Hub.KerasLayer' while using TFF
问题 An error is being generated while training a federated model that uses hub.KerasLayer. The details of error and stack trace is given below. The complete code is available of gist https://gist.github.com/aksingh2411/60796ee58c88e0c3f074c8909b17b5a1. Help and suggestion in this regard would be appreciated. Thanks. from tensorflow import keras def create_keras_model(): encoder = hub.load("https://tfhub.dev/google/tf2-preview/gnews-swivel-20dim/1") return tf.keras.models.Sequential([ hub