TensorFlow 2.0和tf.keras提供了三种方式来实现神经网络模型: Sequential APIFunctional APIModel subclassing 原文可参考这里, 知乎上有人翻译了简要版 。