Module Expr Str Import alias Import alias identifier Import alias Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Print TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd NameLoad Str Print TupleLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Str Str Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice AttributeLoad NameLoad attr Slice Slice Slice Assign NameStore SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice AttributeLoad NameLoad attr Slice Slice Slice Assign NameStore SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr
N/A N/A Converts CIFAR10 png to TFRecords file format with Example protos. N/A os N/A tensorflow tf N/A input_data N/A N/A N/A N/A N/A tf app flags DEFINE_string directory ckpt Directory to download ckpt files and write the converted result N/A N/A N/A N/A N/A tf app flags DEFINE_integer validation_size 10000 Number of examples to separate from the training ckpt for the validation set. N/A FLAGS N/A N/A N/A tf app flags FLAGS _int64_feature N/A N/A value N/A N/A N/A N/A N/A N/A tf train Feature int64_list N/A N/A N/A tf train Int64List value N/A value N/A _bytes_feature N/A N/A value N/A N/A N/A N/A N/A N/A tf train Feature bytes_list N/A N/A N/A tf train BytesList value N/A value N/A convert_to N/A N/A images labels name N/A N/A N/A num_examples N/A N/A labels shape N/A 0 N/A N/A labels shape is  N/A N/A labels shape N/A 0 N/A N/A N/A N/A images shape N/A 0 num_examples N/A N/A N/A ValueError N/A Images size %d does not match label size %d. N/A N/A N/A images shape N/A 0 num_examples N/A rows N/A N/A images shape N/A 1 N/A cols N/A N/A images shape N/A 2 N/A depth N/A N/A images shape N/A 3 N/A filename N/A N/A N/A os path join N/A FLAGS directory N/A name .tfrecords N/A N/A Writing filename N/A writer N/A N/A N/A tf python_io TFRecordWriter filename N/A index N/A range num_examples N/A N/A image_raw N/A N/A N/A images N/A index tostring N/A example N/A N/A N/A tf train Example features N/A N/A N/A tf train Features feature N/A height width depth label image_raw N/A _int64_feature rows N/A _int64_feature cols N/A _int64_feature depth N/A _int64_feature N/A int N/A labels N/A index N/A _bytes_feature image_raw N/A N/A N/A writer write N/A N/A example SerializeToString N/A main N/A N/A argv N/A N/A N/A train_images N/A N/A input_data read_images_from N/A train_labels N/A N/A input_data read_labels_from N/A N/A train_images shape N/A validation_images N/A train_images N/A N/A N/A FLAGS validation_size N/A N/A N/A N/A validation_labels N/A train_labels N/A N/A FLAGS validation_size N/A train_images N/A train_images N/A N/A N/A FLAGS validation_size N/A N/A N/A N/A train_labels N/A train_labels N/A N/A FLAGS validation_size N/A N/A convert_to train_images train_labels train N/A N/A convert_to validation_images validation_labels validation N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A tf app run