AttributeError: ‘KerasTensor‘ object has no attribute ‘lower‘

应该是调用,而不是传入参数。排查类似的错误
x = Flatten(x)
改为
x = Flatten()(x)

你可能感兴趣的:(Python,深度学习)