Hi! Look a little earlier at the instructions, the first section is about loading the MNIST data. And you need to run the following before your snippet of code above: Author Yes, but you need to load it in the context of the current python script that you're attempting to run. (In ...
mnist import matplotlib.pyplot as plt (X_train, Y_train),(X_test, Y_test) = mnist.load_...
mnist.load(BATCH_SIZE, BATCH_SIZE) def inf_train_gen(): while True: for images, targets in train_gen(): yield images 这是一个错误。 代码语言:javascript 复制 Traceback (most recent call last): File "<stdin>", line 13, in <module> File "<stdin>", line 3, in inf_train_gen Name...