tensorflow学习笔记(2)图像数据处理的几个函数

我自己写的,自己看的,非常乱
 // training or inference.
 //
 // There are three base Feature types:
 // - bytes
 // - float
 // - int64
 //
 // A Feature contains Lists which may hold zero or more values. These
 // lists are the base values BytesList, FloatList, Int64List.
 //
 // Features are organized into categories by name. The Features message
 // contains the mapping from name to Feature.
 //
 // Example Features for a movie recommendation application:
 // feature {
 // key: "age"
 // value { float_list {
 // value: 29.0
 // }}
 // }
 // feature {
 // key: "movie"
 // value { bytes_list {
 // value: "The Shawshank Redemption"
 // value: "Fight Club"
 // }}
 // }
 // feature {
 // key: "movie_ratings"
 // value { float_list {
 // value: 9.0
 // value: 9.7
 // }}
 // }
 // feature {
 // key: "suggestion"
 // value { bytes_list {
 // value: "Inception"
 // }}
 // }
 // feature {
 // key: "suggestion_purchased"
 // value { int64_list {
 // value: 1
 // }}
 // }
 // feature {
 // key: "purchase_price"
 // value { float_list {
 // value: 9.99
 // }}
 // }
 //
  
 syntax = "proto3";
 option cc_enable_arenas = true;
 option java_outer_classname = "FeatureProtos";
 option java_multiple_files = true;
 option java_package = "org.tensorflow.example";
  
 package tensorflow;
  
 // Containers to hold repeated fundamental values.
 message BytesList {
 repeated bytes value = 1;
 }
 message FloatList {
 repeated float value = 1 [packed = true];
 }
 message Int64List {
 repeated int64 value = 1 [packed = true];
 }
  
 // Containers for non-sequential data.
 message Feature {
 // Each feature can be exactly one kind.
 oneof kind {
 BytesList bytes_list = 1;
 FloatList float_list = 2;
 Int64List int64_list = 3;
 }
 };
  
 message Features {
 // Map from feature name to feature.
 map<string, Feature> feature = 1;
 };
  
 // Containers for sequential data.
 //
 // A FeatureList contains lists of Features. These may hold zero or more
 // Feature values.
 //
 // FeatureLists are organized into categories by name. The FeatureLists message
 // contains the mapping from name to FeatureList.
 //
 message FeatureList {
 repeated Feature feature = 1;
 };
  
 message FeatureLists {
 // Map from feature name to feature list.
 map<string, FeatureList> feature_list = 1;
 };

http://docs.w3cub.com/tensorflow~python/tf/train/int64list



message Int64List {


  repeated int64 value = 1 [packed = true];


}

repeated 的使用:https://blog.csdn.net/yang3wei/article/details/46360301(可以参考这个博客) 

https://github.com/google/protobuf  (以及这个)

https://www.cnblogs.com/redsmith/p/5263642.html(这篇文章讲得非常清楚,英文不好的可以看这个)

http://www.cnblogs.com/stephen-liu74/archive/2013/01/02/2841485.html(这篇文章也不错)

查找python包的方法

先import这个包,再运行  包名字.__file__

一般第三方包安装在\Lib\site-packages下


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值