cannot import name 'SGD' from 'keras.optimizers'

from keras.optimizers import SGD

修改为

from tensorflow.keras.optimizers import SGD