问题标签 [tensor2tensor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
129 浏览

tensorflow - 如何获得中间层的输出(tensor2tensor 中的特征提取)?

我需要在推断后查看中间值,类似于 [这里] [1] 为 Keras 建议的值

https://keras.io/getting_started/faq/#how-can-i-obtain-the-output-of-an-intermediate-layer-feature-extraction

我在 tensor2tensor 中找不到类似的解决方案。是否可以设置一个 hparam 来在特定层切割我的模型?

0 投票
0 回答
88 浏览

tensorflow - Tensor2tensor:我的自定义问题从未注册过注册表问题

描述

我正在按照这个网站上的微软教程 来获得一个模型来推断中国对联。现在我已经在谷歌云上训练了模型,我也可以得到很好的推理。然而,当我在构建推理服务时,我发现我与 tensorflowserverapi 通信的函数找不到我的问题得到注册。我也对这个模型进行了一步训练并添加了t2t_trainer --registry_help,可以看到我的问题其实是在problems Problems下注册的。

我的代码与此 repo 脚本中的代码相同

这是我的测试代码:

环境信息:

错误日志:

0 投票
0 回答
94 浏览

google-cloud-ml - google ai-platform train api 使用 cloud-tpu 失败

直到几天前,我一直在成功使用带有 tensor2tensor 和 cloud-tpu 后端的 ai-platform train api,但似乎有些事情发生了变化,自上周以来我无法让它工作。

我在日志中看到的工作/非工作之间的差异是配置中的“_master”和“_evaluation_master”。

上次成功的 train api 日志显示如下所示。

但是,我从上周开始看到的日志如下。

然后,tensorflow 尝试通过主机名连接 tpu,最终失败,进程停止。

两个实验使用相同的代码。

如果有人遇到过类似的问题,请指导我完成这个。谢谢!

0 投票
1 回答
43 浏览

tensorflow - tensorflow 急切执行在运行时发生变化

我正在使用 tensor2tensor (1.9.0) 和 tensorflow 1.9。当我尝试tf.enable_eager_execution()在 t2t-decoder 中启用急切执行时,它工作得很好。但是,当程序在 tensor2tensor 的 python 代码中中断时,我发现急切执行已被禁用。试图在 t2t 框架内寻找任何可能禁用它的东西,但我找不到任何可能做到这一点的东西。

版本:t2t 1.9.0 tensorflow (cpu) 1.9.0 python 3.6 ubuntu 18.04

0 投票
0 回答
13 浏览

python - 不知道使用 T2T 时要设置哪些目录

我正在尝试从这里学习 T2T 教程:https ://colab.research.google.com/drive/1Vm-HPy_9HnTxn607x3oidSioX2hpqH_A?authuser=2#scrollTo=6vGb1s-WnaB2

我在 Windows 8.1(64 位)上,我认为我设置正确的目录路径不正确。

在教程中它说:

但是,在成功下载数据集后[I0422 15:25:00.175716 5632 generator_utils.py:255] Successfully downloaded data-plaintext-format.tar, 1197486080 bytes. 100% completed],我收到了很多回溯调用,最终是这样的:

我猜我设置的目录错误,但我不知道怎么做?