import tensorflow as tf

                    self.compute_shape(l2_shape[3], self.ff_pool_strides[1][2]),
                    final_dim]
        else:
            l2_shape = tf.identity(x_shape)

        # Initialize hidden layer activities
