tensorflow中有哪些资产?

时间:2017-10-03 14:51:17

标签: tensorflow save restore

我正在阅读有关保存和恢复模型的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

1 个答案:

答案 0 :(得分:3)

TL; DR 保存Tensorflow模型时您需要知道的是,有两个文件已创建(如果您使用检查点,可能会更多):

file
file.meta

你保存'文件'并恢复' file.meta'。 更多信息:Tensorflow: how to save/restore a model?

#########

更多问题:

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

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

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

相关问题