How to Solve NameError: name 'MaxPool2D' is not defined -- tensorflow

Solution: Import the 'MaxPool2D' module

To Solve the error, add the following line to the top of your code.

from tensorflow import MaxPool2D

 

For more information:
Python tensorflow MaxPool2D