Last active
December 11, 2020 05:34
-
-
Save charlesbmi/46ebd5a512b7bad0f7bcda97128aa439 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add onto our existing x0/code0 computation graph | |
# x1 is the input x_{k+1} | |
x1 = tf.keras.Input(shape=INPUT_DIM, name='x1') | |
# we can re-use the same sub-models (encoder, decoder, linear_dynamics) | |
# to share the same weights | |
code1 = encoder(x1) | |
x1_pred = decoder(code1_pred) | |
model = tf.keras.Model( | |
inputs={'x0': x0, 'x1': x1}, | |
outputs={'x0_reconstructed': x0_reconstructed, | |
'y1': code1, 'y1_pred': code1_pred, | |
'x1_pred': x1_pred} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment