import tensorflow as tf

            #     filters=y_size[-1],
            #     kernel_size=kernels,
            #     trainable=self.train,
            #     use_bias=use_bias,
            #     activation=self.ff_nl)
            resized = tf.nn.conv3d_transpose(
                value=x,
                filter=kernel,
                output_shape=y_size,
                strides=[1] + strides + [1],
                padding=self.padding,
                name='resize_x_to_y')
            resized = tf.nn.bias_add(
                resized,
                bias)
            resized = self.ff_nl(resized)
            return resized
        elif mode == 'replicate_n_transpose':
            resized = tf.image.resize_images(
                x,
                y_size[:-1],
                kernel,
                align_corners=False)
            resized = tf.nn.conv3d_transpose(
