cost 91 ms
如何在 python 中对 tensor2tensor 模型进行推理(没有解码二进制文件和 TensorFlow Serving) - How to do inference on a tensor2tensor model in python (without the decoding binary and TensorFlow Serving)

我对如何在不使用解码二进制文件和 TensorFlow Serving 的情况下对 tensor2tensor 模型进行推理有点困惑。 以下两个代码示例似乎与它最接近,但我收到“无法转换符号张量”错误。 模型输出在通过解码器并抛出错误之前给了我这个: https://gist.github. ...

翻译 Model 预测:TypeError: Object of type 'EagerTensor' is not JSON serializable - Translation Model Predictions: TypeError: Object of type 'EagerTensor' is not JSON serializable

我按照Google 的 tensor2tensor 存储库的建议遵循了翻译 colab 笔记本教程在导出 model 并将其上传到 Google 的 AI Platform 引擎进行在线预测后,我无法向 model 发出请求。 我相信翻译 model 的输入是源文本的张量。 但我收到一个错误, T ...

我该如何使用tensor2tensor的stillation.py将知识从教师网络提取到学生网络? - How do I use tensor2tensor's distillation.py to distill the knowledge from a teacher network to student network?

顶级问题 我想使用教师网络并将其性能/知识仅以其功能的一小部分提炼为另一个更简单的模型 尝试的解决方案 我正在尝试开始使用T2T蒸馏代码。 https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tenso ...

在Flask中导入多个自定义tensor2tensor问题 - Importing multiple custom tensor2tensor Problems in Flask

在flask_restplus API中,我试图从正在一个服务器上服务的两个tensor2tensor模型进行推断。 这两个模型都是自定义的,因此我将t2t_usr_dir提供给tensor2tensor的服务函数,以便可以找到自定义问题。 当推断一个自定义问题时,一切都很好,并且结果符 ...

如何使用tensor2tensor对文本进行分类? - How to use tensor2tensor to classify text?

我想使用tensor2tensor进行二进制文本分类,只注意并且没有LSTM或CNN预处理层。 我认为transformer_encoder模型对我来说是最好的,但我找不到任何必需的预测问题或Hparams。 任何人都可以使用tensor2tensor或其他一些建议给我一个文本分类示例吗? ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM