python 解释器适合 Tensorflow 运行时架构的什么地方?

where does python interpreter fit in Tensorflow runtime architecture?

根据Tensorflow architecture page,下图说明了Tensorflow运行时架构的总体架构。 A C API 将不同语言的用户级代码与核心运行时分开。

python 解释器如何适应图片?与 Tensorflow 运行时并行?

CAPI以上的大部分在Python中实现。您 运行 使用 Python 解释器的那些部分。

更详细地说,C API 及以下版本基本上只是一个库。您可以使用不同语言的这个库。对于训练,您通常使用 Python(所有 tf​​.* APIs),其中 运行s 使用 Python 解释器。对于推理,您通常使用 Java 或 C++。在这种情况下,不需要 Python 解释器。