tensorflow 中有哪些资产?

What are the assets in tensorflow?

我正在阅读关于保存和恢复模型的 tensorflow 教程并遇到以下语句:

  If assets need to be saved and written or copied to disk,
 they can be provided when the first MetaGraphDef is added. If multiple 
 MetaGraphDefs are associated with an asset of the same name,
 only the first version is retained.

这里的 assets 是什么意思?

另外一段说:

We provide a Python implementation of the SavedModel builder. 
The SavedModelBuilder class provides functionality to save multiple MetaGraphDefs.
 A MetaGraph is a dataflow graph, plus its associated variables, assets,
 and signatures. A MetaGraphDef is the protocol buffer representation of
 a MetaGraph. A signature is the set of inputs to and outputs from a graph.

什么是 dataflow graph,它与 graph 有何不同?

这里是the tutorial

长话短说;博士 保存 Tensorflow 模型时,您需要知道的是创建了两个文件(如果您使用检查点,则可能更多):

file
file.meta

您保存 'file' 并恢复 'file.meta'。 更多信息在这里:

#########

关于您的问题的更多内容:

您在 运行 您的会话之前在 Tensorflow 中定义的内容称为图形。

当您保存图表时,会创建一个 MetaGraph。这是图本身,以及该图中计算所需的所有其他元数据,以及一些可以保存的用户信息和版本规范。

资产是外部文件,例如使用图表创建的词汇表。