Python中文
首页
教程
问答
标签
搜索
登录
注册
python注册表中缺少的图形操作Tens
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正在尝试使用通用句子编码多语言模块。我使用的是tensorflow 1.14版本。在参考了stackoverflow的其他问题之后,一个可能的原因是使用了旧版本的tensorflow,而这里不是这样。在</p> <p>更新:添加了python包版本</p> <pre><code>### Tensorflow version : 1.14.0 ### sentencepiece: 0.1.82 ### tf-sentencepiece: 0.1.82.1 use_large_module_url = "https://tfhub.dev/google/universal-sentence-encoder-large/3" #@param ["https://tfhub.dev/google/universal-sentence-encoder/2", "https://tfhub.dev/google/universal-sentence-encoder-large/3"] use_lite_module_url = "https://tfhub.dev/google/universal-sentence-encoder-lite/2" use_multilingual_url = 'https://tfhub.dev/google/universal-sentence-encoder-multilingual/1' #@param ['https://tfhub.dev/google/universal-sentence-encoder-multilingual/1', 'https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/1', 'https://tfhub.dev/google/universal-sentence-encoder-xling-many/1'] # embed = hub.Module(use_lite_module_url) # embed = hub.Module(use_large_module_url) embed = hub.Module(use_multilingual_url) </code></pre> <p>错误</p> ^{pr2}$
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在Windows中,我相信目前没有可用的解决方案,但是如果您使用Linux/Ubuntu,请尝试以下操作:</p> <pre><code>TFHUB_CACHE_DIR=/data/models/tf-hub </code></pre> <p>(数据/模型是您的本地路径,请随意更改)</p> <p>创建一个环境变量,然后</p> ^{pr2}$ <p>反映变化。祝你好运</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
plt.savefig不会覆盖现有文件
10 回答
plt.savefig不保存图像
2 回答
plt.savefig在jupyter笔记本中不起作用
8 回答
plt.savefig在从另一个fi调用时停止工作
4 回答
plt.savefig在调用plt.show之前保存空数字
8 回答
plt.save不创建png文件
2 回答
plt.scatter overlay分类数据帧列
2 回答
Plt.Scatter:如何添加title、xlabel和ylab
6 回答
plt.scatter()绘图与Matplotlib中的plt.plot()绘图类似
3 回答
plt.scatter错误'NoneType'对象在成功运行后没有属性'sqrt'
7 回答
plt.set_title()中的标题字符串有误
1 回答
plt.show()
7 回答
plt.show()不在Jupyter笔记本上渲染任何内容
6 回答
plt.show()不打印plt.plot only plt.scatter
8 回答
plt.show()不显示三维散射图像
2 回答
plt.show()不显示任何内容
4 回答
plt.show()不显示数据,而是保留它供下一个图表使用(spyder)
4 回答
plt.show()使终端挂起
4 回答
plt.show()无法使用此代码
4 回答
plt.show()没有打开新的图形风
9 回答