Exemplo n.º 1
0
def vae_view(head):
    return ag_tuple((np.reshape(head[:latent_size], latent_shape),
                     np.reshape(head[latent_size:], obs_shape)))
Exemplo n.º 2
0
 def vae_view(head):
     return ag_tuple(
         (np.reshape(head[:z_size],
                     z_shape), np.reshape(head[z_size:], shape)))
Exemplo n.º 3
0
 def vae_view(head):
     return ag_tuple(
         (np.reshape(head[:latent1_size], latent1_shape),
          np.reshape(head[latent1_size:latent1_size + latent2_size],
                     latent2_shape),
          np.reshape(head[latent1_size + latent2_size:], (batch_size, ))))