我正在尝试将加载hub.load的模型转换为TFLite。所讨论的模型是在上发现的通用句子编码器(4),我在Python中尝试了Tensorflow版本2.1.0和2.2.0。import tensorflow as tf
model = hub.load("https://tfhub.dev/goo
我使用以下代码使用TF Hub通用句子编码器访问嵌入。import tensorflow as tfmodel = hub.load("https://tfhub.dev/google/universal-sentence-encoderRoughly, the longer the more 'diluted' the embedding
我想尝试一下tensorflow-hub (通用句子编码器)中提供的嵌入。我尝试了提供的示例(),它运行得很好。因此,我试图对“多语言”模型进行同样的处理,但是每次加载多语言模型时,colab内核都会失败并重新启动。有什么问题,我怎样才能解决这个问题?import tensorflow as tfimport matplotlib.pyplot as plt
import numpy as