How to Solve NameError: name 'TimeDistributed' is not defined -- keras

Solution: Import the 'TimeDistributed' module

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

from keras.layers.wrappers import TimeDistributed

 

For more information:
Python keras TimeDistributed