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

Solution: Import the 'Dense' module

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

from tensorflow import Dense

 

For more information:
Python tensorflow Dense