eis a parte que importa do codigo
import tensorflow
from tensorflow import keras
import numpy as np
from keras.layers import Dense
from keras.models import Sequential
from keras.datasets import cifar10
model = Sequential([
keras.layers.Flatten(input_shape = (32,32)),
keras.layers.Dense(286, activation = tensorflow.nn.relu),
keras.layers.Dense(10, activation = tensorflow.nn.softmax)
])
print(model.summary())
e eis o erro
The added layer must be an instance of class Layer. Found: <tensorflow.python.keras.layers.core.Flatten object at 0x7ff0876067b8>
é só para treinar minha programação então é simples mas n sei o que tem errado