摘要: ###生成批次数据 import tensorflow as tf '''reapt()生成重复数据集 batch()将数据集按批次组合''' file_name = ['img1','img2','img3','img4'] label = [1,2,3,4] dataset =tf.data.D 阅读全文
posted @ 2019-10-24 21:50 无聊就看书 阅读(728) 评论(0) 推荐(0)
摘要: ###隐函数lanbda及map函数的应用实例 ''' lambda 参数1,参数2,参数3,...:表达式 ''' f = lambda x,y :x+y print(f(1,2)) ###输出3 ''' map()接收一个函数f 和 一个Iterator(可迭代对象),并通过把函数f依次作用在I 阅读全文
posted @ 2019-10-24 20:15 无聊就看书 阅读(5010) 评论(0) 推荐(0)
摘要: tf.data.Data.zip用法 阅读全文
posted @ 2019-10-24 14:55 无聊就看书 阅读(1838) 评论(0) 推荐(0)