tensorflow数据结构
文章平均质量分 63
onexming
这个作者很懒,什么都没留下…
展开
-
tensorflow数据结构-MetaGraphDef
tensorflow数据结构https://github.com/tensorflow/tensorflow/blob/r1.11/tensorflow/core/protobuf/meta_graph.proto《Tensorflow实战深度学习框架》 Tensorflow的计算图在运行时,以MetaGrapDef的形式实行计算图,并且在进行计算图保存(save)时,将MetaGra...原创 2018-11-08 10:27:30 · 2581 阅读 · 0 评论 -
tensorflow数据结构-AssetFileDef
AssetFileDef单个文件或具有相同名称的一组分片文件的资源文件def。这个应该就是保存权重的.data文件,根据AssetFileDef属性在.data中寻找对应的权重参数。message AssetFileDef { //将资源文件名绑定到的张量。 TensorInfo tensor_info = 1; //资产目录中的文件名。 注意:不包括路径前缀,即目录。 //...原创 2018-11-08 10:42:59 · 483 阅读 · 0 评论 -
tensorflow数据结构-SignatureDef
文章目录SignatureDef案列SignatureDef应该就是导出模型后,.index文件的部分,建立张量名到张量的映射。message SignatureDef { //指定输入参数。 map<string, TensorInfo> inputs = 1; //指定输出参数 map<string, TensorInfo> outputs = 2...原创 2018-11-08 10:42:13 · 2880 阅读 · 0 评论 -
tensorflow数据结构- SaverDef
文章目录SaverDefCheckpointFormatVersion案例SaverDefhttps://github.com/tensorflow/tensorflow/blob/r1.11/tensorflow/core/protobuf/saver.proto记录持久化模型时需要用到的一些参数,比如保存到的文件名,保存操作和加载操作的名称以及保存频率,清理历史记录等message...原创 2018-11-08 10:39:53 · 784 阅读 · 0 评论 -
tensorflow数据结构-GraphDef
文章目录GraphDefNodeDef案列GraphDef只关注计算图的连接结构信息, 根据连接结构中”索引“在MetaInfoDef中寻找节点运算的具体message GraphDef { repeated NodeDef node = 1; // 版本号 VersionDef versions = 4; // 实验性的版本号 int32 version = 3 [de...原创 2018-11-08 10:37:55 · 11946 阅读 · 3 评论 -
tensorflow数据结构-MetaInfoDef
MetaInfoDef文章目录MetaInfoDefOpListOpDefArgDefAttrDefOpDeprecation案例记录计算图中所有是使用到的运算方法message MetaInfoDef { // 用户指定的版本字符串 可以是模型和修订的名称, // 此模型已经过训练的步骤等。 string meta_graph_version = 1;...原创 2018-11-08 10:33:13 · 982 阅读 · 0 评论 -
tensorflow数据结构-CollectionDef
文章目录collection_def案列NodeListBytesListcollection_defmessage CollectionDef { // NodeList用于收集图中的节点。 message NodeList { repeated string value = 1; } // BytesList用于收集字符串和序列化的protobufs。 me...原创 2018-11-08 10:41:11 · 786 阅读 · 0 评论