gpt4 book ai didi

python - 如何从 C++ 使用 TensorFlow Estimator?

转载 作者:太空宇宙 更新时间:2023-11-04 12:47:00 25 4
gpt4 key购买 nike

我是 TensorFlow 的新手,但我必须使用 C++ 实现 TensorFlow 模型。

我假设我可以使用 Python 定义一个模型(图形)并将其导出,然后按照本文所述从 C++ 调用导出的图形。

Loading a TensorFlow graph with the C++ API

但是——由于我对其低层的理解有限——我不确定如何对 Estimator 做同样的事情。 .这是因为显然对我来说既没有“ session ”也没有“图形”定义(不过我知道它包含在里面)。

你能在这里稍微指导一下吗?

最佳答案

由于 C++ 没有高级 api ( reference ),并且本文中使用的 tf.Session 比 Estimator 的层级低,我个人认为这是不可能的。

我最初的假设是使用 TensorFlow Serving使用 C++ 客户端 ( example ),但任何想法都非常受欢迎。

关于python - 如何从 C++ 使用 TensorFlow Estimator?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51011920/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com