what will the equivalent code be for
 z_loss = 0.5 * tf.reduce_sum(tf.square(z_mean) + tf.exp(z_logvar) - z_logvar  - 1, axis = [1,2,3])

What are the pytorch equivalent for reduce_mean and reduce_sum
Thanks