我正在尝试在我的模型中使用带有hub.KerasLayer的nnlm-en-dim50预训练模块来进行文本分类和序列标记。该模型在普通tf.keras.layers.Embedding下运行良好,但当切换到KerasLayers时:
ValueError: Python inputs incompatible with i
有人知道这个错误的原因吗?in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors.and https://www.tensorflow.org/api_docs/python/tf/function for more details.in a loop, (2) passing tensors with