import tensorflow as tf

                x,
                y_size[:-1],
                kernel,
                align_corners=False)
            resized = tf.nn.conv3d_transpose(
                value=resized,
                filter=kernel,
                output_shape=y_size,
                strides=[1, 1, 1, 1, 1],
                padding='SAME',
                name='resize_x_to_y')
            resized = tf.nn.bias_add(
                resized,
                bias)
            resized = self.ff_nl(resized)
            return resized
        else:
            raise NotImplementedError(mode)

    def conv_3d_op(
            self,
            data,
