I keep getting this error when running my code:
ValueError: Only instances of keras.Layer can be added to a Sequential model. Received: <tensorflow.python.keras.layers.core.Flatten object at 0x0000014E1944C8D0> (of type <class 'tensorflow.python.keras.layers.core.Flatten'>)
I'm relatively new to python and tensorflow so I'm not sure why I keep running into this error. I've ran into a similar issue before and also couldn't resolve that one. Any help is appreciated.
I have more code than the image, but I believe the error should be stemming from an issue there.