I am trying convert a Sequential model to a functional model based on the answer from this post: Conversion of a sequential model to a functional model with Keras 2.2.0