frompaddle.trainer.PyDataProvider2import*frommnist_utilimportread_from_mnist# Define a py data provider@provider(input_types={'pixel':dense_vector(28*28),'label':integer_value(10)},cache=CacheType.CACHE_PASS_IN_MEM)defprocess(settings,filename):# settings is not used currently.foreachinread_from_mnist(filename):yieldeach