def backward(self, y, z):
ys = int_shape(y)
assert ys[3] % 4 == 0
x = tf.depth_to_space(y,2)
if z is not None:
z = tf.depth_to_space(z,2)
return x, z
# The layer that factors out half of the variables
# directly to the latent space.
评论列表
文章目录