Wrapping my head around #Tensorflow.
An affordable approach is to use dictionaries for weights/biases, then functions for subparts (e.g., encoder/decoder), then functions for connecting the subparts (model).
An example here: https://tinyurl.com/y3bmgsqf