import os
import cv2
import paddle
import numpy as np
from glob import glob
from paddle import fluid
from pprint import pprint
from paddle.fluid import ParamAttr
##pprint(dir(paddle))defmake_cifar10_reader():
xRt="A:/dataSet/class/Cifar10/images"
totalfileList,totalLabelList=[],[]for fdidx inrange(10):
folder=xRt+"/"+str(fdidx)
itemList = os.listdir(folder+"/")
itemList=[item for item in itemList if(item.endswith(".jpg"))]
itemList=["/"+str(fdidx)+"/"+it for it in itemList]
totalfileList.extend(itemList)
totalLabelList.extend([fdidx for k inrange(len(itemList))])
newIndexes=np.array(range(len(totalLabelList)))
np.<