2.2.3 TensorFlow 2.X编码实现